So, for the one-dimensional problem:
If there are n places sorted along x-axis:
a) if n = 2x (where x is a natural number), the appropriate meeting place can be anywhere within range coordinate[x] ~ coordinate[x+1] (inclusive). Why? because in this range, "each move of the m.p one cell" will increase cost for x places by 1, decrease cost for x places by 1, so the total cost would be the same. If it tries to go out from the range(like meeting in coordinate[x]-1), it will increase cost for x+1 places and decrease cost for x-1 places by 1. So in that case the total cost will be increased.
b) if n=2x+1 ? You'll easily see that the m.p. should be placed in coordinate[x+1] if you observe the above.
(m.p. stands for meeting point)
Hope I helped?
