โ† LinkedIn questions

Find nearest point that has the same x or y coordinate

Filed under LinkedIn

The question

Given a coordinate and a list of points, find the nearest point that shares an x or y coordinate.

No write-up yet. Related questions below have one.

Related LinkedIn questions

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