diff --git a/problems/0020.有效的括号.md b/problems/0020.有效的括号.md index f2f5cdd1..9d9168e3 100644 --- a/problems/0020.有效的括号.md +++ b/problems/0020.有效的括号.md @@ -166,7 +166,7 @@ class Solution { deque.pop(); } } - //最后判断栈中元素是否匹配 + //遍历结束,如果栈为空,则括号全部匹配 return deque.isEmpty(); } } @@ -555,3 +555,4 @@ impl Solution { +