You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BinarySearchTree.prototype.remove fails to remove parent node in the following example.
example
varbst1=newBinarySearchTree();bst1.insert(1);bst1.insert(3);bst1.insert(2);console.log(bst1.findNode(3));// trueconsole.log(bst1.findNode(5));// falsebst1.remove(1);bst1.remove(3);bst1.remove(2);console.log(bst1.findNode(1));// true <-- should be false
The text was updated successfully, but these errors were encountered:
branlok
added a commit
to branlok/js-data-structures-and-algorithms
that referenced
this issue
Sep 14, 2021
BinarySearchTree.prototype.remove fails to remove parent node in the following example.
example
The text was updated successfully, but these errors were encountered: