Question: B. [9 points] implement a non-member function named isEqual. This function takes two BSTs and checks whether their elements are the same. Note: The BSTs

 B. [9 points] implement a non-member function named isEqual. This function

B. [9 points] implement a non-member function named isEqual. This function takes two BSTs and checks whether their elements are the same. Note: The BSTs can be in any orderistructure. Your implementation must run in O(n+m), where n and m are the sires of the two BSTx. If your implementation is correct bat runs in mote than O(n+m), you will receive at most 6 points. template bool isEqual (BSTt1, BST ,t2) \{

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!