โ† Amazon questions

Gas Station Circuit Tour

Filed under Amazon

Given two integer arrays gas[] and cost[], where gas[i] is the gas at station i and cost[i] is the cost to travel to station i+1, find the starting station index to complete a circuit.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.