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.
I thought so too, but notice if the number is < 2, it'll only iterate twice before it reaches that statement.
You're trading time efficiency for readability.
This should be a O(n) / 2 operation, but you made it = (O(n) / 2) ^ 2
I would have voted clever if it wasn't for that!
Could you entertain me with an explanation as to why there is no description of the assertions?
While the rules of the problem are valid, the test cases are extremely unclear.