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.
No, I wrote it specifically for this kata and added localization just for the fun.
Is this solution from real code?
This comment is hidden because it contains spoiler information about the solution
It sacrifices space complexity to reduce time complexity.
Probably the best solution here.
I don't get why it's so much more efficient than mine with all the memory reallocations of splice.
Almost codewarsReadable !