Implementing balanced binary search tree (BST) from a sorted array in JavaScript, as part of The Odin Project's "Full Stack JavaScript" course
0
stars
0
forks
source link
add `.insert(value)` method that inserts a node with that value into the tree #8
Closed
henrylin03 closed 3 months ago
fixes #6 - we do not yet rebalance the tree
uses the recursive method (as opposed to iterative)
tests
output: before insertion:
after insertion (incl error message for trying to insert
8
):