612. Shortest Distance in a Plane

Posted yuesi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了612. Shortest Distance in a Plane相关的知识,希望对你有一定的参考价值。

# Write your mysql query statement below
SELECT ROUND(MIN(SQRT(POW(p1.x-p2.x,2)+POW(p1.y-p2.y,2))),2) AS shortest
FROM point_2d p1
LEFT JOIN point_2d p2
ON !(P1.x=P2.x AND p1.y=p2.y)
;






以上是关于612. Shortest Distance in a Plane的主要内容,如果未能解决你的问题,请参考以下文章

1046 Shortest Distance (20分)

Shortest Distance

pat Shortest Distance (20)

1046 Shortest Distance (20 分)

LeetCode 821. Shortest Distance to a Character

算法shortest distance