InterviewDB
Question
Nearest Pair: Find the Closest Pair of Points in 2D Space
phone
Question Details
Problem Given N points in 2D space, find the pair with the minimum Euclidean distance. Example: A brute-force O(n^2) solution is expected first. Then discuss the divide-and-conquer approach. Approach Divide-and-conquer: sort by x, split at median, recurse on each half, then check the strip of width 2*delta around the midline. The strip check is O(n) because each point in the strip can have at most 7 neighbors within delta. Follow-ups Walk through the strip check. Why is the constant 7 (or 8) the…
Full Details
🔒
Unlock all Waymo questions
Full insider details, leaked discussions, and candidate experiences.
or every company, $100/year →About This Question
This is a reported interview question from a waymo interview during the phone round.
More Waymo Interview Questions
Reddit
For coding round SWE at Waymo do you have to code 2 questions in 45 mins for phone scree?
Reddit
Waymo Data System Design Round
1p3a
waymo fulltime machine learning engineer onsite interview experience
1p3a
Waymo Internship Interview Experience and Questions
LeetCode
#871 Minimum Number of Refueling Stops