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.
complexity of this solution seems very high :(
For every item in the left, you should return how many numbers on the right are smaller
So:
There's an easy greedy solution that involves complexity similar to O(n * n), so the proposed tests would pass, but final tests will not due to timeout.
I'm trying to figure out how to make this O(n) :D
Good luck!