← Amazon questions

Circular petrol pump tour

Filed under Amazon

Suppose there are n petrol pumps arranged in a circular path. You have two arrays: petrol amount at each pump and the distance to the next pump. Find the index of the first petrol pump 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 Amazon questions

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