mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 16:54:50 +08:00
@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user