示例#1
0
 private AVLNode DoubleRotateWithRight(AVLNode node2)
 {
     node2.right = RotateLeft(node2.right);
     return(RotateRight(node2));
 }
示例#2
0
 public void MakeEmpty()
 {
     root = null;
 }
示例#3
0
 private AVLNode DoubleRotateWithLeft(AVLNode node1)
 {
     node1.left = RotateRight(node1.left);
     return(RotateLeft(node1));
 }
示例#4
0
 public AVLTree()
 {
     root = null;
 }