leetcode-71 simplify path
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
路径打印问题,将自己碰到的特殊情况记录如下
1.两个"//"打印为一个"/"
2.出现两个点"/../"
原创
2017-04-17 11:48:17 ·
189 阅读 ·
0 评论