Add removeTreeNode methods to AvlTree and BinarySearchTree
|
export class AvlTree<T> extends BinarySearchTree<T> { |
https://github.com/datastructures-js/binary-search-tree/blob/master/src/avlTree.d.ts#L4
denoland/std#3055
A node can be removed from a binary tree with O(1) time complexity using the removeTreeNode method.
https://cplusplus.com/reference/set/set/erase/