Skip to content

Commit 5a8b8ae

Browse files
committed
Bst improvisation
1 parent 600d7ae commit 5a8b8ae

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dsa-BinaryTree/src/BinarySearchTree.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ public boolean isValid(TreeNode root, long min, long max) {
5656

5757

5858
public static void main(String[] args) {
59+
BinarySearchTree bst=new BinarySearchTree();
60+
bst.insert(bst.root, 14);
61+
bst.insert(bst.root, 24);
62+
bst.insert(bst.root, 34);
63+
bst.insert(bst.root, 44);
5964

6065
}
6166
}

0 commit comments

Comments
 (0)