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.
Did you try this kata in any of the other languages? I am getting timeout errors, and it looks like a ton of people are skipping it. I might have to walk the test suite back a little...
You guys are absolutely right; this solution isn't faster or simpler than an iterative solution.
I've tried rewriting it 7 or 8 times now, and ended up with a version that cuts out the recursion and a lot of the extra string and list allocations.
This comment is hidden because it contains spoiler information about the solution