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.
This comment is hidden because it contains spoiler information about the solution
There is an O(1) time solution. Took me a while to find it out... Good luck ;)
This is a bad task for level 6. Look at the comments. Only participants with 1,2 kyu and 1,2 dan are satisfied.
Iterative approach is going to timeout even though you can reach O(log n) time comlexity with it.
But there is a math solution which can do O(1) time complexity.
Soooo this is what Big(O) means in real life?? huh interesting!! now gotta find a way to code a faster algo I guess...
Very good and funny! Thanks to author!!!
This comment is hidden because it contains spoiler information about the solution
Approved.
We're adding or subtracting, not multiplying.
The kata is very confusing. The answer is always '0', as the easiest way to make 'a' the multiple of 'x' is 'a * x' thus '0' is the answer, and the whole kata makes no sense.
This means the code is not good enough :)
i have a good code but it couldn't be submitted; timed out.
This comment is hidden because it contains spoiler information about the solution
PHP:
1 <= n <= 1e9
as stated in the description.Thanks @cod3abuser! But technically it's not a good solution hahaha
Loading more items...