leetcode-71-簡化路徑

題目描述: 方法: class Solution: def simplifyPath(self, path: str) -> str: stack = [] path = path.split("/") for item in path: if item == "..": i
相關文章
相關標籤/搜索