AlgoMaster Logo

Gas Station

gas=[1, 2, 3, 4, 5],cost=[3, 4, 5, 1, 2]
0 / 10
gascostnet012341234534512
algomaster.io
Step:Start: Find a starting station to complete the circuit