Optimal Point on a Line

2020 VietMX 0

You are given n points on a line with their coordinates x i. Find the point x so the sum of distances to the given points is minimal. Input The first […]