PAT甲级 1066 AVL tree(25)
发布时间
阅读量:
阅读量
题目
An AVL tree is a self-balancing binary search tree. 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. Figures 1-4 illustrate the rotation rules.



还没有任何评论哟~
