positions lists the (unsorted, distinct) spots along a corridor where a router may be mounted. You must
mount exactly m routers, each at a different spot, and you want the closest pair of routers to be as far
apart as possible. Return that largest achievable minimum distance.
Examples
Input: positions = [9, 1, 4, 13, 6], m = 3
Output: 5
Explanation: mount at 1, 6 and 13.
Input: positions = [20, 2, 7, 500000000, 11], m = 2
Output: 499999998
Input: positions = [1, 2, 3], m = 3
Output: 1
Constraints
2 <= m <= len(positions) <= 5 * 10**40 <= positions[i] <= 10**9, all distinct- Required time:
O(n log n + n log(max(positions))).
Goals
- Binary search over a distance and verify with a greedy placement
- Sort unsorted input before searching