A solution to Leetcode 71. Simplify Path
Problem statement
Given a string path, which is an absolute path (starting with a slash '/') to a file or directory in a Unix-style file system, convert it to the simplified canonical path.
In a Unix-style file system, a period '.' refers to the curr...
nhutnguyen.hashnode.dev4 min read