HeshamMagdy97 / Binary-Search-Tree

Template Binary Search Tree using c++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binary-Search-Tree

Template Binary Search Tree using c++ has the following functions:

	insert //insert value into the tree .
	remove(data_type value) // take value & remove it from the tree.
	search(data_type value) // search for element and return it if found null otherwise.
	min() //find minmum value of the tree.
	max() //find maxmum value of the tree.
	isEmpty() //check weather the tree is empty or not.
	isBalance() //check if the tree balanced or not. 
	isSubTree(BST* t1, BST* t2) //check if t1 is subtree from t2.
	printRange(data_type first, data_type last) //print the nodes in the tree in the range first, last.
	print() //traverse the tree.

About

Template Binary Search Tree using c++


Languages

Language:C++ 100.0%