Leetcode 613. Shortest Distance in a Line
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Your account is free and you can post anonymously if you choose.