Рет қаралды 9
07:00 I was trying to say that we update the starting station based on the available gas we have.
There can be two types of starting station's final values. One - correctly updated, two - when there's no possible paths whose gas is greater than the cost. When we check if totalGas is greater than totalCost and if it satisfied, it means we found the correct stating station, else, no path exists.
Not a tutorial. Just documentation of my personal study.
If you wanna watch this, set the play speed to 1.5x.