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.
Wanted to say this is complex solution, but it is probably one of more performant out there. I see others doing sort (which is expensive) - also me, but also stringifying array later which is even worse and more expensive operation.
This comment is hidden because it contains spoiler information about the solution
One of the least performant solutions but still nice looking :)
This comment is hidden because it contains spoiler information about the solution
Dont repeat yourself :)
This one is probably shortest but it's really expensive for computer as we are building array & string on each iteration.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
same issue here :( seems like it was issue with modificating array with reverse function
damn :) true... it just evokes that it want's to go through all of them.
no need to go through every item, it's better enough to find first which do not fit - eg. with function Array.prototype.find
This comment is hidden because it contains spoiler information about the solution
Oh so my try of Katas and firstone is broken? should be most easiest :o