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.
too many loops when one-loop aproach is possible here^^
Also computationally inefficient, because each time an element gets evaluated, it is compared with all the existing lists. But I loved the functional approach.
Interesting solution, yet it is very expensive in terms of space. You are creating a new list for every range, even if it is a one value range. So in worst case you would have n lists where n is the size of the array.
best ever!