Last Updated:

Binary tree [ C ++ ]

You must build a binary search tree whose elements are integers. The data is stored in a file (it is written through a space in one line of a number (for example: 1 2 3 6 9)).

Display tree elements using the following tree traverses:


a) infix crawl
b) postfix crawl
c) prefix crawl

You also need to implement the following functions:
d) Find the sum of tree
elements e) Find the product of multiples of elements 3

A recursive method is used for the solution.