Skip to content

Commit 9c2687f

Browse files
committed
Added Classic Data Structure practice
1 parent 3f03049 commit 9c2687f

18 files changed

+297
-0
lines changed
881 Bytes
Binary file not shown.
1.64 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
599 Bytes
Binary file not shown.
2.33 KB
Binary file not shown.
1.27 KB
Binary file not shown.
22 Bytes
Binary file not shown.
54 Bytes
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package ClassicDataStructures;
2+
3+
public class BTreeExercise {
4+
5+
6+
public static void main(String[] args) {
7+
BinarySearchTree bst = new BinarySearchTree();
8+
bst.insert(8);
9+
bst.insert(7);
10+
bst.insert(13);
11+
bst.insert(3);
12+
bst.insert(10);
13+
bst.insert(6);
14+
bst.insert(4);
15+
bst.insert(1);
16+
bst.insert(14);
17+
18+
//bst.inOrder();
19+
bst.preOrder();
20+
System.out.println();
21+
System.out.println(bst.min());
22+
System.out.println(bst.max());
23+
24+
25+
}
26+
27+
}

0 commit comments

Comments
 (0)