Handle the string, messy but not too difficult. Basically meet “.” then do nothing, meet “…” pop last level. Otherwise append the result string
leetcode-71-Simplify Path
最新推荐文章于 2024-03-03 07:32:44 发布
Handle the string, messy but not too difficult. Basically meet “.” then do nothing, meet “…” pop last level. Otherwise append the result string