Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Minimum Number of Refueling Stops
Bookmark
Input
Example 1
Impossible
Already there
Two stations
Custom
target
=
100
,
startFuel
=
10
,
stations
=
[[10,60],[20,30],[30,30],[60,40]]
0
target 100
60
10
30
20
30
30
40
60
car
algo
master
.
io
Step:
Start: Reach position 100 with the fewest refueling stops
0 / 13
Input
Example 1
Impossible
Already there
Two stations
Custom
target
=
100
,
startFuel
=
10
,
stations
=
[[10,60],[20,30],[30,30],[60,40]]
0 / 13
0
target 100
60
10
30
20
30
30
40
60
car
algo
master
.
io
Step:
Start: Reach position 100 with the fewest refueling stops