Merge pull request #1788 from wantsnowfly/master

修改了java代码中的一处注释错误
This commit is contained in:
程序员Carl 2022-12-21 10:50:49 +08:00 committed by GitHub
commit 4754ed7963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -341,7 +341,7 @@ class Solution {
if (node1.left == null && node2.left != null) {
node1.left = node2.left;
}
// 若node2的左节点为空,直接赋值
// 若node1的右节点为空,直接赋值
if (node1.right == null && node2.right != null) {
node1.right = node2.right;
}
@ -732,3 +732,4 @@ impl Solution {
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
</a>