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.
Well, we all know that the answer is correct. But I believe we need some more details on how you've got it. Please check my solution for the details
Moreover, the solution uses a lot of regex
match
calls for the same array items during the sorting. That is not efficient by its nature.Hi there!
I like the idea, but it performs
reduce
twice per each element.This is very inefficient in terms of performance. Please check my solution to see how to call
reduce
just once per the array.Regards