solulubeta
Sign in
NeetCode 150 / Heap / Priority Queue
09.03 · Problem

K Closest Points to Origin

Medium Max-heap of size k 1 video LC 973 Pro

This problem is part of solulu Pro

Given points [x, y] on a plane, return the k points closest to the origin (Euclidean distance), in any order. The answer is unique.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 66 of 150 · updated 2026-10-12