This commit is contained in:
youngyangyang04
2021-09-18 09:03:39 +08:00
parent e9f48c211a
commit 483b806975
21 changed files with 550 additions and 67 deletions

View File

@@ -472,7 +472,6 @@ var deleteNode = function (root, key) {
cur = cur.left;
}
cur.left = root.left;
let temp = root;
root = root.right;
delete root;
return root;