Binary search tree implementation in Java 8
Initialize an undirected graph and add edges.
BinarySearchTree b = new BinarySearchTree();
b.insert(3);
Node x = b.insert(8);
b.insert(1);
b.insert(4);
b.insert(6);
b.insert(2);
b.insert(10);
b.insert(9);
(or)
bst.insertWithArray(7, 5, 3, 6, 1, 4, 12, 9, 15, 8, 10, 13, 17);
- Depth First Traversal
- Breadth First Traversal
- Height of Node
- Height of Tree
- Is Tree balanced
- Is Isomorphic?
- Find if data is present in tree
- Are two Binary trees equal
- Are two Binary trees Isomorphic?
Clone
Depending on the size of the project, if it is small and simple enough the reference docs can be added to the README. For medium size to larger projects it is important to at least provide a link to where the API reference docs live.
Test cases cover the following
mvn test
Anyone can contribute to this project.
- Implement all test cases
MIT