C++ Coding Exercise – How to Simplify Path?
April 27, 2016
algorithms, c / c++, leetcode online judge, programming languages, string
No Comments
Simplify an absolute path for a file (Unix-style): For example, path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c" Did you consider the case where path = “/../”? …