Search⌘ K
AI Features

Minimize Max Distance to Gas Station

Minimize Max Distance to Gas Station asks you to place a fixed number of new stations along a sorted line so the largest adjacent gap is as small as possible.

Statement

You are given an integer array, stations, representing the positions of existing gas stations along the x-axis. You are also ...