摘要:
class Solution: def simplifyPath(self, path: str) -> str: li=path.split("/") res=[] for i in li: if i=='..' and res: res.pop() if i!='.' and i!='..' a 阅读全文
posted @ 2023-09-17 17:19
Aneverforget
阅读(14)
评论(0)
推荐(0)
摘要:
class Solution: def canCompleteCircuit(self, gas: List[int], cost: List[int]) -> int: n=len(gas) max_gas=0 rest=0 records=[] start=0 for i in range(n) 阅读全文
posted @ 2023-09-17 15:47
Aneverforget
阅读(12)
评论(0)
推荐(0)

浙公网安备 33010602011771号