Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
As a brazilian gonna say: "que ódio!!!! kkkk"
When you resolve it, you gonna laugh hard.
This one was very confusing, but once you solve it,it feels good
U will feel stupid and will smile after solving this one.
JavaScript functions are just something funny 😂
The range values have been tweaked and properly stated in the description
pFacis the possible bottleneck for TLE: if it will encounter the numberxwith big prime divisor (or being the big prime itself), it'll go from 1 toxat worst. Considering the army on some random tests would have several such primes, your solution will check each of them, spending a lot of time and thus timeouting. Maybe there's another way to check if the number is an Achilles one?(also marked the second one as spoiler)
the series of questions was kept unresolved despite being properly addressed and resolved on the issue above, resolving them now~
Based on the current tests, the max array length may be infinite since the code will keep trying generating the numebr until it finds out the Achilles number (which can take a while in the worst case) :/
Also the special cases may include numbers up to 10^10 (
1+Math.random()*10|0will give you 10 for random giving >0.9 BOTH for power and base)... so yeah, the ranges should definitely be stated.Add simple range check test in "Sample Tests". It will be useful.
Simple, interesting, useful. Thank you for this kata!
Hint:
console.logit, see what you get.great feeling! on to the next challenge! go go go!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hilarious one. Liked it :D
I feel so stupid. :)
Loading more items...