C3 AICodingMembers
Nearest K Points to the Origin
Members only
A coding question on picking out the closest few items from a larger collection of 2D coordinates. The interesting part is choosing a selection strategy whose cost depends on how many results you need rather than on the whole input. Interviewers tend to push on streaming and higher-dimension variations afterward.
SWE
medium
array
heap
sorting
math
top-k
Frequency
Single report
Last asked
—
Stage
—
Members get
- Full problem statement
- 3 progressive hints
- Step-by-step approach
- Full solution with code
- 6 talking points
- 5 follow-up questions with answer directions
- Preparation drills
Log in to continue reading the full content
Comments
Sign in to join the discussion
Loading...
