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 like the first line, was thinking how to do this myself :) but your approach is very nice.
Not bad, actually, but formatting and variables names are awful :(
Why 62847?
I definitely suggest you make this an iterative process instead of a recursive process. The recursive process will deplete the stack very quickly due to the way the number of steps and memory consumption increases with the number. This might be a shorter (code wise) recursive solution but if you use recursion with an iterative process it will ensure that the stack is never depleted.
This comment is hidden because it contains spoiler information about the solution
Awesome kata! Useful to learn something about JS closures :)