Tag Archives: 贪心

LeetCode Gas Station

LeetCode Gas Station There are N gas stations along a circular route, where the amount of gas at station i is gas. You have a car with an unlimited gas tank and it costs cost of gas to travel from station i to its next station (i+1). You begin the... Read More