K Closest Points to Origin
MediumLeetCodeHeap / Priority Queue
Approach hintTry it first, then revealHide
Compare squared distances to avoid square roots, and keep a max-heap of size k so that the farthest current candidate is the one evicted. O(n log k).