@Test(expected = IllegalArgumentException.class) public void shouldNotAcceptNullBinaryTreesIterative() { isBST.checkIterative(null); }
public boolean checkIterative(BinaryNode<Integer> root) { validateInput(root); List<BinaryNode<Integer>> nodesInOrder = binaryTreeInOrder.getRecursive(root); return isListOrdered(nodesInOrder); }
IsBST { public boolean checkIterative(BinaryNode<Integer> root) { validateInput(root); List<BinaryNode<Integer>> nodesInOrder = binaryTreeInOrder.getRecursive(root); return isListOrdered(nodesInOrder); } }
IsBST { public boolean checkIterative(BinaryNode<Integer> root) { validateInput(root); List<BinaryNode<Integer>> nodesInOrder = binaryTreeInOrder.getRecursive(root); return isListOrdered(nodesInOrder); }  }
IsBST { public boolean checkIterative(BinaryNode<Integer> root) { validateInput(root); List<BinaryNode<Integer>> nodesInOrder = binaryTreeInOrder.getRecursive(root); return isListOrdered(nodesInOrder); }  boolean checkRecursive(BinaryNode<Integer> root); boolean checkIterative(BinaryNode<Integer> root); }
IsBST { public boolean checkIterative(BinaryNode<Integer> root) { validateInput(root); List<BinaryNode<Integer>> nodesInOrder = binaryTreeInOrder.getRecursive(root); return isListOrdered(nodesInOrder); }  boolean checkRecursive(BinaryNode<Integer> root); boolean checkIterative(BinaryNode<Integer> root);  }