Leetcode: Simplify Path

Simplify Path



Similar Problems:


Given an absolute path for a file (Unix-style), simplify it.

For example,

path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"

Github: code.dennyzhang.com

Credits To: leetcode.com

Leave me comments, if you have better ways to solve.


## Blog link: https://code.dennyzhang.com/simplify-path

linkedin
github
slack

Share It, If You Like It.

Leave a Reply

Your email address will not be published.