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.
For such a short string is not something to bother about, and it feels cleaner for this specific problem
Well this has a time complexity of O(n log n) when there's a way to do it as O(n) which would be better since we need to ensure performance.
It might need some readability but besides that, it's quite efficient.
Very clever, that performs with excellent complexity both on time and space