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.
This comment is hidden because it contains spoiler information about the solution
Your right, I hadn't seen the problem from that angle. So you mean it would be better to do something like the following one :
Great. Thus, as you can see, you can much more simplify your algorithm :p
I don't understand why you need to iterate through all array elements so many times while you can just do something like that :