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 comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Hello, I'm stumped. I'm coding in ruby and it passess all the tests but when I try to submit it always fails on the last test.
The fail message is: Expected: "", instead got: ............a very long string........
But I can't see why it expects "" since the k number is less than the array size but greater than zero.
I'm getting the exact same problem as well. And I can't figure out why.
Edit: Ended up looking at the solutions - I had overcomplicated my code so there were too many calculations being made when the answer was much simpler.