public NodeBounds(BinaryTreeNode node, int lowerBound, int upperBound) { Node = node; LowerBound = lowerBound; UpperBound = upperBound; }
public BinaryTreeNode InsertLeft(int leftValue) { Left = new BinaryTreeNode(leftValue); return(Left); }
public BinaryTreeNode InsertRight(int rightValue) { Right = new BinaryTreeNode(rightValue); return(Right); }
void TestSuperBalancedTrees(bool expected, BinaryTreeNode root) { var actual = new SuperBalancedTreeValidator().IsSuperBalancedTree(root); Assert.Equal(expected, actual); }