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.
nice!
Sadly, I didn't invent it :-)
This comment is hidden because it contains spoiler information about the solution
I love math ...great work :)
just put sone notes about the idea
This is very simple and easy-to-understand.
I think it is better for "gap = 2 * n - 2" to be placed outside map.
at the time it had not even gotten any upvotes for clever. I agree some of the 'worse' (performance wise) solutions may be more production friendly, but this is definitely clever. Its good to see more upvotes are comming in for this one
It's definitiely clever, but it's not clear.
Wow this is a great solution! Constant time!
Constant time solution and no upvotes? why is this not both clever and good practice?
Its better than all the upvoted ones
I think so,too.