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.
Some just iterate faster than others :P
Funny, how after spending numerous hours at a problem, and somehow finally managing to get to the right solution, you feel how obvious the solution was, and it should not have taken you more than a few retries to solve it.
But the truth is, no matter how obvious the answer seems once you stumble upon one, you wouldn't have gotten to it without those numerous failures :P quite philosophical, but this is exactly how I feel after solving this kata. Thanks a lot to the sensei for this wonderful problem :)
Yes, it is. I just thought it might be a good idea to point it out explicitly :)
Note that each targets.pop(0) is a O(N) process