void Test1(BinarySearchTree<int> &tree) { tree.Print(); if (!IsBalanced(tree.GetRoot())) printf("Not balanced\n"); else printf("Balanced\n"); }
void Test(BinarySearchTree<int> &tree) { tree.Print(); if (GetBalancedTreeHeight(tree.GetRoot()) == -1) printf("Not balanced\n"); else printf("Balanced\n"); }