We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
select round(abs(max(lat_n)-min(lat_n))+abs(max(long_w)-min(long_w)),4)
from station
manhanttan distance = |x_1 - x_2| + |y_1 - y_2|
we known if i have one vector a have coordinate (x,y) examples (1,1) , (3,4)
if we want to calculate distance vector (1,1) to (3,4) , we could manhanttan distanstance
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 18
You are viewing a single comment's thread. Return to all comments →
select round(abs(max(lat_n)-min(lat_n))+abs(max(long_w)-min(long_w)),4) from station manhanttan distance = |x_1 - x_2| + |y_1 - y_2| we known if i have one vector a have coordinate (x,y) examples (1,1) , (3,4) if we want to calculate distance vector (1,1) to (3,4) , we could manhanttan distanstance