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.
Understood.
Please use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
this really clever i loved it
Thank you for this point, of course you are right with it.
or even faster: you compute the correct range limit and you don't need either if or takewhile or whatever (see the fork)
I think this is not a 8kyu kata. Just an opinion.