LeetCode: https://leetcode.com/problems/k-closest-points-to-origin/
Given an array of points where points[i] = [xi, yi] and an integer k, return the k closest points to the origin (0, 0).
1
0
3
1
-2
2
2
3
2
4
-2
5
k=1
Step 1 / 2
Step 1:
Push all points into a min-heap keyed by squared distance.
Focus: select @ [0, 1]
k=1