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
sounds easy enough to test, I'd be interested in seeing any results
It should be faster than regex solution
One of the least performant solutions but still nice looking :)
Nah, it's a perfectly normal "best solution".
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.
every() or some() also don't have to go through all the elements, they will stop at the first element which do not fit ;-)
Loading more items...