Exemplo n.º 1
0
 public BinaryTreeNode <T> FindFirstCommonAncestor <T>(BinaryTree <T> tree, BinaryTreeNode <T> node1,
                                                       BinaryTreeNode <T> node2)
 {
     return(this.FindFirstCommonAncestor(tree.Root, node1, node2));
 }
Exemplo n.º 2
0
 public bool IsBalanced <T>(BinaryTree <T> tree)
 {
     return(this.GetHeight(tree.Root) != int.MinValue);
 }