Fade to Solo
Heap / Priority Queue

K Closest Points to Origin

10 MINMleetcode ↗

Problem

Given a list of 2D points and an integer k, return the k points closest to the origin. Any valid ordering of the k answers is acceptable.

10 MIN00:00unlocks in 10:00
locked10:00 left