Пример #1
0
 public int getBalance(AVLNode node)
 {
     return(getHeight(node.LeftChild) - getHeight(node.RightChild));
 }
Пример #2
0
 public AVLTree(AVLNode root)
 {
     Console.WriteLine("Root is " + root.Value);
     this.root = root;
 }