Gas Station
Understand and solve the interview question "Gas Station".
We'll cover the following...
Description
Suppose there are n
gas stations identified by integers 0, 1, . . ., n-1
, where the amount of gas at the station is gas[i]
. Imagine that these gas stations are arranged clockwise in a circle, as shown below.
Access this course and 1400+ top-rated courses and projects.