Closest Meeting Point
Given N people on an MxM grid, find the point that requires the minimum total distance travelled by all N people to meet at that point.
We'll cover the following...
Statement
There is an M
xM
grid where N
people live. These N
people want to meet such that the total travel distance is minimized. The travel distance is to be calculated using the Euclidean distance metric. For two points on this grid, (x1,y1)
and (x2, y2)
, the Euclidean distance between them is given by:
...
Access this course and 1400+ top-rated courses and projects.