Esempio n. 1
0
        private static int TreeImbalance(ImmutableAvlTree <int, int> tree)
        {
            var lh = NodeHeight(tree.Root.Left);
            var rh = NodeHeight(tree.Root.Right);

            return(lh - rh);
        }
 private static int TreeImbalance(ImmutableAvlTree<int, int> tree)
 {
     var lh = NodeHeight(tree.Root.Left);
     var rh = NodeHeight(tree.Root.Right);
     return lh - rh;
 }