Skip to content

Commit 7ec0abe

Browse files
authored
Create Readme.md
1 parent 3bd4808 commit 7ec0abe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Stack/071.Simplify-Path/Readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### 071.Simplify-Path
2+
3+
先预处理字符串,将所有用"/"分割的字符串放置于一个字符串数组里。再根据每个字符串的具体含义,模拟一个栈的操作:遇到".."就退栈,遇到"."就不入栈,其他的时候都入栈。最后把栈里面的所有字符串用"/"再连接起来。

0 commit comments

Comments
 (0)