Given points on a plane, return the k points closest to the origin by Euclidean distance, ordered by distance (ties: smaller x first, then smaller y).
Input
n 2 (n points, 2 coordinates each)x y of each pointkOutput: k lines, each x y.
2 2 1 3 -2 2 1
-2 2
√8 < √10.
3 2 3 3 5 -1 -2 4 2
3 3 -2 4
Run your code against the sample tests, or Submit to run the full suite.