788. Minimize Max Distance to Gas Station

Hard
Array
Binary Search

Description

Hints

Hint 1
Use a binary search. We'll binary search the monotone function "possible(D) = can we use K or less gas stations to ensure each adjacent distance between gas stations is at most D?"

Similar Questions

Statistics

Acceptance
53.8%
Submissions
68,574
Accepted
36,888