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.
It looks short and cool, but it works very slowly, because of brute force and sort :(
Brilliant!
this is gold
I quite like this solution. It is brute-forceish but it's simplicity has charm.
My solution is very similar and takes only 200ms on 150 tests. It might not be clever nor best practices but it's super simple and it does work, so for the purpose of this kata it's more than fine I guess....