MCPcopy Create free account
hub / github.com/geekcomputers/Python / main

Method main

binarySTree isTrue_YashV1729.Java:53–66  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

51
52 /* Driver program to test above functions */
53 public static void main(String args[])
54 {
55 BinaryTree tree = new BinaryTree();
56 tree.root = new Node(4);
57 tree.root.left = new Node(2);
58 tree.root.right = new Node(5);
59 tree.root.left.left = new Node(1);
60 tree.root.left.right = new Node(3);
61
62 if (tree.isBST())
63 System.out.println("IS BST");
64 else
65 System.out.println("Not a BST");
66 }
67}

Callers

nothing calls this directly

Calls 1

isBSTMethod · 0.95

Tested by

no test coverage detected