Example #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));
 }
Example #2
0
 // public insert, calls private insert on given item
 public void Insert(T value)
 {
     root = Insert(root, value);
 }
Example #3
0
 // public delete, calls private delete on given item
 public void Delete(T item)
 {
     root = Delete(item, root);
 }