Update problems/0450.删除二叉搜索树中的节点.md

This commit is contained in:
fw_qaq
2022-12-09 15:44:18 +08:00
committed by GitHub
parent 4b575a8dab
commit d97f27621c

View File

@ -685,7 +685,8 @@ impl Solution {
}, },
std::cmp::Ordering::Greater => node.left = Self::delete_node(node.left.clone(), key), std::cmp::Ordering::Greater => node.left = Self::delete_node(node.left.clone(), key),
} }
root.clone() drop(node);
root
} }
} }
``` ```