Leetcode 71 Simplify Path
Approach The idea is to get rid of unnecessary tokens from the path. Three types of tokens can be cleaned. The empty token "//" --> "/". "." token: /a/./b" -> "/a/b" ".." token : "/a/../b" -> "b". Algorithm Split the path into tokens separated by th...
May 5, 20231 min read
