K Closest Points to Origin
Max-Heap keeps K smallest distances. If size > K, remove Max (Farthest).
Processing
Kept in Heap
Rejected/Popped
2D Plane
Max Heap of Distances
當前步驟
Ready.
步驟 0 / 0
邏輯解釋
C++ Code