@Test public void conerCaseTest4() { TreeNode root = null; Assert.assertEquals(IsBst.isBst(root), true); root = new TreeNode(Integer.MIN_VALUE); Assert.assertEquals(IsBst.isBst(root), true); root = new TreeNode(Integer.MAX_VALUE); Assert.assertEquals(IsBst.isBst(root), true); root.left = new TreeNode(Integer.MIN_VALUE); Assert.assertEquals(IsBst.isBst(root), true); root.left = new TreeNode(Integer.MAX_VALUE); Assert.assertEquals(IsBst.isBst(root), false); }
public static boolean isBst(TreeNode root) { return false; }
IsBst { public static boolean isBst(TreeNode root) { return false; } }
IsBst { public static boolean isBst(TreeNode root) { return false; }  }
IsBst { public static boolean isBst(TreeNode root) { return false; }  static boolean isBst(TreeNode root); }
IsBst { public static boolean isBst(TreeNode root) { return false; }  static boolean isBst(TreeNode root);  }