Simplify Path
Given an absolute Unix-style file path path, convert it to its canonical simplified path.
Rules:
- A single dot
.means the current directory and is ignored. - Double dots
..mean moving to th...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
