修改了java代码中的一处注释错误

This commit is contained in:
wantsnowfly
2022-11-30 15:51:48 +08:00
parent 00fcbffef0
commit 0a8b3f1225

View File

@ -341,7 +341,7 @@ class Solution {
if (node1.left == null && node2.left != null) { if (node1.left == null && node2.left != null) {
node1.left = node2.left; node1.left = node2.left;
} }
// 若node2的左节点为空,直接赋值 // 若node1的右节点为空,直接赋值
if (node1.right == null && node2.right != null) { if (node1.right == null && node2.right != null) {
node1.right = node2.right; node1.right = node2.right;
} }
@ -696,3 +696,4 @@ object 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>