d********e 发帖数: 132 | 1 在网上看到这个题:
given a path like: dir1/dir2/../dir3/./dir4, where ‘..’ means parent
directory and ‘.’ Means current directory, condense the given path. For
example, for the given string, the result should be: dir1/dir3/dir4
这道题是编程题还是用UNIX 命令? |
|