Friday, October 10, 2014

Extend the binary search tree ADT to include a Boolean function similartrees that receives pointers

Extend the binary search tree ADT to include a Boolean function similartrees that receives pointers to two binary trees and determines whether the shapes of the trees are the same. (the nodes do not have to contain the same values, but each node must have the same number of children) a. Write the declaration of the function SimilarTrees as a TreeType member function. Include adequate comments. b. Write the body of the function SimilarTrees

No comments:

Post a Comment