make the full circular path, shortest path exercise?

后端 未结 8 1510
耶瑟儿~
耶瑟儿~ 2021-02-04 22:27

I got this question in an interview and I was not able to solve it.

You have a circular road, with N number of gas stations. You know the ammount of gas

8条回答
  •  别跟我提以往
    2021-02-04 23:12

    Find the gas station with the most gas but for when the gas for the next station when added to the tank does not exceed the capacity of the tank.

提交回复
热议问题