Given an array of points on the X-Y plane and an integer k, return the k closest points to the origin (0, 0). The distance between two points on the plane is measured using the Euclidean distance formula. The answer does not have to be in any specific order.
Click Run to execute sample tests.