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.
How would one begin doing this without using recursion?
I have tested my code on jsfiddle against the three given tests as well as my own, and they all passed. However, when I test here, I get:
Test didn't pass: Unknown error
Any ideas what's going on?
Edit: for some reason, I had to add one of my own tests here on codewars, then it ran the others? I didn't know we were required to write any of our own tests?
Edit: ohh, run tests is only for personal tests, got it.