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.
Quickselect has O(n**2) in the worst case though. Just iterating over the list and setting the two biggest like in my solution would be optimal in runtime
Well the asymptotic runtime is the same (O(n)), so feel free to take your world tour using this...
This is awesome! My solution is O(n) too but yours is abolutely concise and elegant!