예제 #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;
 }