In a Goldman Sachs sponsored chess tournament, there are n rooms situated along a straight line at positions positions[0], ..., positions[n-1].
You need to assign c players to rooms such that the minimum distance between any two players is as large as possible to prevent noise distraction.
Return that largest minimum distance.
5 3 1 2 4 8 9
3
Assign 3 players to positions 1, 4, and 8 (or 9).
Distances between adjacent players: |4 - 1| = 3, |8 - 4| = 4. Minimum distance = 3.
No assignment can achieve minimum distance > 3.
Binary search the distance d. Sort the positions. A greedy validator canPlace(d) places the first player at position 0, then places each subsequent player at the first position >= lastPlaced + d. If placedCount >= c, search higher half.