A C algorithm that takes numbers from a user and constructs a binary search tree. It also performs some extra operations.
Please when compiling this project, don't forget to add the treeprint.h file.
This program takes numbers from the standar user input. It constructs a binary search tree whenever a new insertion takes place. It also implements the following operations:
- Search for a number on the tree.
- Find the maximum value of the tree.
- Find the successor of a number.
- Print the total sum of nodes.
- Print the sum of nodes of a given subtree.