dastal - v5.0.0 / AVLTreeNode
An AVLTree node interface (source).
In an AVL tree, the heights of the two child subtrees of any node differ by at most one. If at any time they differ by more than one, rebalancing is done to restore this property.
Name |
---|
T |
-
↳ AVLTreeNode
• balanceFactor: number
The delta rank of the node.
• Optional
left: AVLTreeNode<T>
A link to the node's left child.
• Optional
right: AVLTreeNode<T>
A link to the node's right child.
• value: T
The value of the node