871. Minimum Number of Refueling Stops
Hard
Input: target = 1, startFuel = 1, stations = []
Output:
0
Explanation:
We can reach the target without refueling.Input: target = 100, startFuel = 1, stations = [[10,100]]
Output:
-1
Explanation:
We can not reach the target (or even the first gas station).Last updated