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.
just to be safe? i think in order to find closest points in a O(nlogn) time complexity, we need a sorted array, because array could be in any order.
The description doesn't specify this, and sorting an array of arrays just to be safe is an easy task to do.