This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingConcept theory, tags and interview notes for Gas station.
What this asks
Find the station a car can start from to complete the circular route, or report that none exists.
Carry the fuel in the tank since the candidate start and the total over the whole route. A dry tank moves the start past the failure, and a negative total means -1.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing