【发布时间】:2021-08-20 10:37:00
【问题描述】:
How could I change this linear tree to balanced tree in single traversal?
1
\
2
\
3
\
4
\
5
\
6
我应该旋转多少次才能将其更改为 AVL 树?
【问题讨论】:
-
输入节点是否已经配备了平衡因子信息,正如 AVL 节点所需要的那样?你试过什么?你被困在哪里了?
标签: binary-search-tree avl-tree