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.
You need a solution faster than O(n).
Edit: Wait, if you can pass the 7th test (the test with very big numbers) it should already be faster than O(n). In that case I guess it's due to some edge cases triggering infinite loop?
Okay, now I see what's the problem. Fixed.
It might have to do with how you dealt with the
Debug
switch.Can you post your code in the reply (with spoilers)?