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
Yeah I often think this way too. And I feel dumb and/or like others would have done it quicker...
But in actual fact I think everyone has to go through all the iterations.
And the guys who say "Oh I did that in like 10 minutes" are full of it.
Thanks for your comment!
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 :)
I know, that is bad variant, i need queue for that. But it was simpliest solution that was easy to write'n'read
Note that each targets.pop(0) is a O(N) process