Find the minimum refueling stops when refueling at station i forbids stations i-1 and i+1.
Unlock detailed company stats for this questionUpgrade
A modified version of the classic Minimum Number of Refueling Stops problem. Given target, startFuel and gas stations, find the minimum number of refueling stops needed to reach the destination. If you refuel at station i, you cannot refuel at station i-1 or i+1. Return -1 if it is impossible to reach the target.
Format · Online assessment.
Community answers
No answers contributed by the community yet.


