← All problems
Medium · Heap / Priority Queue

K Closest Points to Origin

Return the k points nearest the origin by Euclidean distance.

Full problem and submission ↗
main.js

Console

Ready