Closed GreedyBlade closed 4 years ago
Remove operation in avl tree does not work.
return this.remove(min);
y = (z._left === y) ? z._right : z._left;
z._left === y
Can I try to fix it
Remove operation in avl tree does not work.
return this.remove(min);
will pass a Node param to this function.y = (z._left === y) ? z._right : z._left;
, this conditionz._left === y
is always false