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.
How it can be marked as a "best practice"?? O(N * N * log N)
O(N * log N) though it should be just O(N)
How it can be voted as "best practice" if this approach is O(n * lg n)? it can be solved with O(n)
How it can be marked as "best practice" if this solution at least makes sort twice??