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.
Looks good, but it has a high time complexity (n^2).
Too many loops
This is the best solution
This comment is hidden because it contains spoiler information about the solution
Why did I not think of this? So nice!
Both are getting there values from 'arr'. You can imagine this as nested loops. .find on the outside, .filter on the inside.
Magical
This comment is hidden because it contains spoiler information about the solution
Thank you for you thorough explanation :)
@shahx95 Thanks for the great explaination
Nice solution
This comment is hidden because it contains spoiler information about the solution
Hey thanks for commenting this! Makes sense.
edit
Can someone explain how it works?
Loading more items...