LeetCode 71. Simplify Path(简化路径)
原题网址:https://leetcode.com/problems/simplify-path/
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
原创
2016-05-22 00:05:09 ·
754 阅读 ·
0 评论