Update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user