# # # @param gas int整型一维数组 # @param cost int整型一维数组 # @return int整型 # class Solution: def canCompleteCircuit(self , gas , cost ): # write code here i=0 while(i<len(gas)): next=(i+1)%len(gas) curOil=gas[i]-cost[i] while(next!=i and ...