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 is a clever but extremely inefficient solution. Don't feel bad for those that used a lot more lines of code. Your solution is likely O(n) compared to this O(n^3) solution
Da best fuckin solution!
Coooool)
the array should not be altered..
holy crap LOL this is so much cleaner than mine
This comment is hidden because it contains spoiler information about the solution
Nice solution! Maybe add some comments to help others follow the train of thought?
Who votes stuff like this as best practise? Clever yes, best practise not even close.
Good solution anyway, but there must be extra condition as achawkins commented below!!!=)