Weather Observation Station 18

Jimin·2022년 9월 5일
0

HackerRank

목록 보기
24/27
post-custom-banner

Manhattan distance

Definition:

The distance between two points measured along axes at right angles. In a plane with p1 at (x1, y1) and p2 at (x2, y2), it is |x1 - x2| + |y1 - y2|.

SELECT ROUND(ABS(MAX(LAT_N) - MIN(LAT_N)) + ABS(MAX(LONG_W)- MIN(LONG_W)), 4)
FROM STATION;
profile
https://github.com/Dingadung

0개의 댓글