Hello! I don`t to know how to solve this problem: We have X garages and Y cars (we write them the first row in input), the second row we write X numbers which are the coordinates of the garages (they are in line). The question is to find maximum distance between the nearest two cars.
Restrictions: 1 <= X <= 100000, 2 <= Y <= X.