mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
修改0020.有效的括号.md的Java版本一处注释
This commit is contained in:
@ -166,7 +166,7 @@ class Solution {
|
|||||||
deque.pop();
|
deque.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//最后判断栈中元素是否匹配
|
//遍历结束,如果栈为空,则括号全部匹配
|
||||||
return deque.isEmpty();
|
return deque.isEmpty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -555,3 +555,4 @@ impl Solution {
|
|||||||
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
|
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
|
||||||
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
|
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user