← Microsoft questions

First Circular Tour Visiting All Petrol Pumps

Filed under Microsoft

Given a circular array of petrol pumps where each pump has a certain amount of petrol and a specified distance to the next petrol pump, find the starting petrol pump index from which a truck with an…

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

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