Gas Station(貪心 類似於max subarray)

There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its n
相關文章
相關標籤/搜索