Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 20385f1

Browse files
修改0020.有效的括号.md的Java版本一处注释
1 parent 275efa0 commit 20385f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎problems/0020.有效的括号.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class Solution {
166166
deque.pop();
167167
}
168168
}
169-
//最后判断栈中元素是否匹配
169+
//遍历结束,如果栈为空,则括号全部匹配
170170
return deque.isEmpty();
171171
}
172172
}
@@ -555,3 +555,4 @@ impl Solution {
555555
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
556556
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
557557
</a>
558+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /