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.
alexander fairweather
This comment is hidden because it contains spoiler information about the solution
I'm wondering why more people marked this as "Best Practice" than "Clever"!
I see it's pretty optimized, and hence clever, but I won't call it Best Practice unless it's very readable.
At least there should be sufficient commenting.
This comment is hidden because it contains spoiler information about the solution
I was using Java
You need to mention the language you used
The kata description says we can assume n>=1, but random test cases are sometimes generating n=0.
What the!??! X-D This is so funny.