Created during a computer CPP course during the second year at Ariel University in the Department of Computer Science, 2019
Project site: https://zvimints.github.io/Binary-Search-Tree/
Made by: Zvi Mints and Or Abuhazira and Eilon Tsadok
Makefile: Makefile script in order to merge all the files together
Tree.cpp: Main Source cpp file of the project, include the Tree.hpp
Tree.hpp: The main Header hpp file of the project, includes declaration of the methods that relevant to the BEST.
TreeDemo.cpp: Simple Demo that using the BST code.
TreeTest.cpp: Testing file for BST.
Insert - in order to insert number into its suitable place in the tree, just use the function insert(your number).
Note: if you insert existing number the function will throw an exception.
Remove - in order to remove a number from the tree and keep it organized, just use the function remove(your number).
Note: if you remove a non existing number the function will throw an exception.
Contains - in order to know if a number is in the tree, just use the function contains(your_number).
Note: if the tree is empty the function will throw an exception.
Neighbors - in order to find who is the neighbors of some number that in the tree, just use the functions parent(your_number), left(your_number), right(your_number).
Note: if there is no neighbor as you ask for, the function will throw an exception.