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
When I did the kata the simple test cases seemed to be missing. Might I suggest something like:
This got a little fancy. I used a trie like structure to cache results. This would allow me to store less data if there were many similiar function calls. I also wanted to optimize the hashing for arguments and considered storing primative values directly.
Solid! That is nicer. Thanks.
slice also creates new array.
also in case of (n < signature.lenth) 'while' will be skipped due to sequence.length === n;