SELECT MIN(Distance.distance) AS shortest
SELECT ABS(p1.x - p2.x) AS distance
FROM point p1, point p2
WHERE p1.x != p2.x
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.