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.
Awful
Good solution
Looks good, but in terms of performance 4 filters, it's tough)
thats tough my guy
great solution! But you could minimize work by returning false at the top of the function if walk's steps are different from 10, I think!
This code is very slow for large arrays. You could easily fix this by checking for
walk.length === 10
before executing all thefilter
s.Why you use 4 loops? You can make it in one loop.