khba Loves to Sleep!
From Codeforces. Geometry. Solve the geometry problem "khba Loves to Sleep!".
Examples
Input: [1,2,3]
Output: 0
Input: [2,3,4]
Output: 0
Hints
Maximize min distance = binary search on answer m. Check: can k teleports cover all friends within distance m? Each teleport covers a contiguous interval.
Sort friends. Greedy: place teleport at friend_pos + m, skip all friends within m of it. Count teleports needed; if ≤ k, m is feasible.
Friends at 0 and x limit teleport placement. Gaps between consecutive friends after sorting — available positions for teleports in each gap is max(0, gap_width - 2m + 1).
khba Loves to Sleep!
**From Codeforces.** Geometry. Solve the geometry problem "khba Loves to Sleep!".