Skip to content

613. Shortest Distance in a Line 👍

1
2
3
SELECT MIN(P1.x - P2.x) AS shortest
FROM Point AS P1, Point AS P2
WHERE P1.x > P2.x;