K Closest Points to the Origin
Talk it through out loud with your AI coach.
The problem
- medium
- Pro
Given a list of points on a flat plane and a number k, return the k points closest to the origin. Explain your approach and its cost.
Talk it through out loud with your AI coach.
Given a list of points on a flat plane and a number k, return the k points closest to the origin. Explain your approach and its cost.
Meta E5 Software Engineer · 12 of 31
Next is a Pro challenge. Skip to the next free one: Design a URL ShortenerGiven a list of points on a flat plane and a number k, return the k points closest to the origin. Explain your approach and its cost.
This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.
Black Friday: 40% off your first 3 months, ends Monday 30 Nov.