← Samsung questions

Find N closest 2D points to a target coordinate

Filed under Samsung

Given a large set of points on a 2D plane and a target coordinate (X, Y), design an efficient algorithm to find the N closest points to the target coordinate.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Samsung questions

Collected from public candidate posts and coding forums. Updated Nov 2026.