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 Haskell. Anything can be short if you're so smart. Just throw in some unreadable squiggles. :P
But it's short. And short means smart. We appreciate smart.
Sorting the list in
O(n log n)
to check if it is sorted, which can be done inO(n)
, is not a Best Practice.( People, please stop upvoting such solutions. )