You need to sign in or sign up before continuing.×
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.
The language in which I experienced the behaviour one year ago was JavaScript, maybe it was fixed in the meantime.
The test cases don't check the case [n > length of the string], but the instructions demand to handle that case:
"If n is greater than the lenght of the string, you should return an array with the only element being the same string."
So currently that part could be left out and you still get to submit your final solution.