大约 1 分钟
Home > @hz-9/algorithm > AdelsonVelskiiLandiTree
AdelsonVelskiiLandiTree class
Self-balancing tree.
自平衡树。
Signature:
export declare class AdelsonVelskiiLandiTree<T> extends BinarySearchTree<T>Extends: BinarySearchTree<T>
Methods
Method | Modifiers | Description |
|---|---|---|
| ||
| Get the height difference of a node. 获取节点高度差距。 | |
| Get the height of a node. 获取节点高度。 | |
| ||
| Left rotation. (Left - Left) 向右的单旋转。(左 - 左) | |
| Left-Right rotation. (Left - Right) 向左的单旋转。(左 - 右) | |
| Right-Left rotation. (Right - Left) 向右的单旋转。(右 - 左) | |
| Right rotation. (Right - Right) 向左的单旋转。(右 - 右) |