
Given a list of 2D coordinates points and an integer k, return the k points closest to the origin (0, 0). Use Euclidean distance, but you may compare points using squared distance since the answer only depends on ordering. Return the result in any order.
points = [[1,3],[-2,2]], k = 1Output[[-2,2]]WhySquared distances are 10 and 8.points = [[3,3],[5,-1],[-2,4]], k = 2Output[[3,3],[-2,4]]WhyThe two smallest squared distances are 18 and 20.`1 <= len(points) <= 10^4``1 <= k <= len(points)``-10^4 <= x, y <= 10^4`