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 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 (BST
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
