This project was made for The Odin Project curriculum as part of learning web development. I am leaving these projects up and public for anyone who would want to see my journey to becoming a software engineer.
Live: https://nikitarevenco.github.io/
- Learned how the binary search tree data structure works.
- Build a binary tree from an array with
const tree = new Tree(Array)
- Traverse with
tree.inOrder(cb)
,tree.preOrder(cb)
,tree.postOrder(cb)
each of which are also able to take a callback function to manipulate data in the tree. - Other methods such as
getLeaves
which returns all leaves,isBalanced
which returns whether the tree is balanced, etc.
- Clone this repository.
- Open
index.html
in your browser. - Use the console to interact with the binary search tree.