← Expedia questions

Find first circular tour that visits all petrol pumps

Filed under Expedia

Given `n` petrol pumps on a circular route where pump `i` provides `petrol[i]` units of petrol and the distance to the next pump is `distance[i]`, find the starting petrol pump index from which a…

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 Expedia questions

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