mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2026-03-13 08:51:02 +08:00
Fix issue #98.
This commit is contained in:
@@ -132,6 +132,9 @@ export default class BinarySearchTreeNode extends BinaryTreeNode {
|
||||
}
|
||||
}
|
||||
|
||||
// Clear the parent of removed node.
|
||||
nodeToRemove.parent = null;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user