KPMG | puzzle asked for a developer position

there are N gas stations in a circle
You know the distance from each gas station to every other gas station and
each gas station only has a certain amount of gas.
Your car can also only hold a certain amount of gas
There is guaranteed to be a starting gas station such that you are able to visit all gas stations from the start.

whats the most efficient way to find that right starting gas station?

I'm not entirely sure how to answer this one, so help is appreciated!

Comments (1)