修改0020.有效的括号.md的Java版本一处注释

This commit is contained in:
‘windscape’
2025-01-17 10:29:24 +08:00
parent 275efa0c70
commit 20385f1146

View File

@ -166,7 +166,7 @@ class Solution {
deque.pop();
}
}
//最后判断栈中元素是否匹配
//遍历结束,如果栈为空,则括号全部匹配
return deque.isEmpty();
}
}
@ -555,3 +555,4 @@ impl Solution {
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>