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 just checked and the random lists can contain over 50.000 elements, so you should try another approach which requires less computation.
Please, read the instructions again, the base is always 3:
k is the number you have to return, and N the passed parameter.
3 < 3 is false. That's why 1 is not right, but with k = 0, 1 < 3 is true.