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.
Yes, it is a better solution, though a bit overkill to use a HashMap when you know it will only ever have 2 unique keys.
Space complexity will be larger.
I use the same solution. Will this work much more faster than using Arrays.sort? Time complexity better than using sort? How about Space complexity?
maybe you forget if v1<v2
For the same