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.
lol nice
The title throw me off a bit as I thought switch gravity would indicate the bottom # gets flip to top. Perhaps something like max gravity or something like that be more descriptive. Just my two cents, good kata overall, thank you!
I get this suppose to be an easy question. But what if the given number is incredibly large. Wouldn't calculating the very last number be enough to determine the outcome?
I have a similar code. I took me forever lol
I wrote a similar solution but your is much elegant !
It's my solution too, but i think this might be O(n * n) though.