871 Minimum Number of Refueling Stops
1. Questions
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't reach the target (or even the first gas station).2. Implementation
3. Time & Space Complexity
Last updated