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.
Super slow solution, this is a good function but not fit for this exercise.
Thanks for sharing.
Weird how you passed the kata using the whole array when they are huge. You don't need to use the whole array.
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?
超过11位怎么办?
By far the best solution I've seen +rep.
...
Please dont hardcode.