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.
Thanks for that comment, the description is terrible.
This comment is hidden because it contains spoiler information about the solution
I confess that it looked almost comically overkill at first but I have to say this is really impressive. Running a quick benchmark of your method against the most common solutions shows that, while other solutions start to take several seconds for huge numbers benchmarked several times, yours stays below 10,000th of a second. Very nice :-)
I think the instructions are unclear: as they stand right now (with pattern(4) and pattern(6)), it sounds like it's just "pop the first digit". However the tests then show that it's not the digit, but the number that has to be popped. Maybe there should be an example pattern(12) showing:
123456789101112
.......
1112
11
This is nice, but there is a lot of wasted cycles sorting and recalculating
wow!!!!!!!