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.
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/162.
Please join the discussion to help us identify duplicate kata and retire them.
I see a lot of people use for loop why not just use a while loop instead. Is while loop more performance friendly?
No random tests (at least in Ruby)
This comment is hidden because it contains spoiler information about the solution
You should update the instructions to say what to do if n does not fit any of the other requirements
Duplicate.