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.
Shouldn't the manhattan distance between two points on a plane be |deltaX| + |deltaY| or |lat| + |long| -> which would make the solution |maxLat - minLat| + |maxLong - minLong|? It doesn't make sense to me why we subtract lat from long in the given solution. Is that just the arbitrary way that the problem is defined?
Weather Observation Station 18
You are viewing a single comment's thread. Return to all comments →
Shouldn't the manhattan distance between two points on a plane be |deltaX| + |deltaY| or |lat| + |long| -> which would make the solution |maxLat - minLat| + |maxLong - minLong|? It doesn't make sense to me why we subtract lat from long in the given solution. Is that just the arbitrary way that the problem is defined?