K Closest Points to Origin — Heap / Priority Queue

Given drivers scattered on a grid, pick out the ones nearest the depot at the origin and report where they are, in any order.

Heap / Priority Queue · Medium

More in Heap / Priority Queue

All algorithm problems