Available question text
Given coordinates of points on a one-dimensional line, find the minimum absolute distance between any two points. This typically reduces to sorting the positions and comparing adjacent distances to identify the smallest gap.
Related questions
Continue with questions that share topics or the same question type.
- Find Shortest Distance Between Multiple Sources and Destinations in Matrix
Coding
- Shortest Distance After Road Addition Queries I
Coding
- Shortest Distance After Road Addition Queries II
Coding
- Shortest Distance from All Buildings
Coding · Array · Breadth-First Search · Matrix
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 613. Shortest Distance in a Line
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source