如何确定自己的研究领域?# Immigration - 落地生根
P*b
1 楼
这道题的最优解怎么解?
There are n gas stations positioned along a circular road. Each has a limite
d supply of gas. You can only drive clockwise around the road. You start wit
h zero gas. Knowing how much gas you need to get from each gas station to th
e next and how much gas you can get at each station, design an algorithm to
find the gas station you need to start at to get all the way around the circ
le.
thanks
There are n gas stations positioned along a circular road. Each has a limite
d supply of gas. You can only drive clockwise around the road. You start wit
h zero gas. Knowing how much gas you need to get from each gas station to th
e next and how much gas you can get at each station, design an algorithm to
find the gas station you need to start at to get all the way around the circ
le.
thanks