树树
🚂

二叉搜索树(binary search tree)

若它的左子树不空,则左子树上所有结点的值均小于它的根结点的值; 若它的右子树不空,则右子树上所有结点的值均大于它的根结点的值; 它的左、右子树也分别为二叉排序树。
notion image
 

插入元素

notion image

移除元素

notion image
notion image

平衡二叉树(balanced binary search tree)

AVL tree(Adelson-Velskii-Landis tree)