Available question text
Given your location (x,y) and a list of points, find the index of a point that shares either the same x or y coordinate and has the smallest Manhattan distance to you (break ties by smallest index); return -1 if no such point exists.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1779. Find Nearest Point That Has the Same X or Y Coordinate
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source