示例#1
0
 // rotates right child to right ,then current to left
 public AVLTreeNode <T> RotateRightLeft(AVLTreeNode <T> root)
 {
     root.right = RotateLeftLeft(root.right);
     return(RotateRightRight(root));
 }
示例#2
0
 // public insert, calls private insert on given item
 public void Insert(T value)
 {
     root = Insert(root, value);
 }
示例#3
0
 // public delete, calls private delete on given item
 public void Delete(T item)
 {
     root = Delete(item, root);
 }