Question: Please Help complete this prompt, and include ths javascript and html that solves this prompt. These trees are supposed to end up as EQUIVALENT please
Please Help complete this prompt, and include ths javascript and html that solves this prompt. These trees are supposed to end up as EQUIVALENT please make sure they do so Please check the code output and make sure they end up as equivalent. Create the trees seen in the image. You can call these trees by any name. You will need to implement a BinaryTree Object. This is very similar to making a List where each node points to a Left and a Right Node. A little research should help you get this pretty easily at this point.
The next step is to compare the lists. There are possible states of the Trees;
They are unequal they do not contain the same structure or elements
They are equivalent they contain the same elements, but not the same structure.
They are equal they contain the same structure and elements.
The example trees are equivalent they both contain with a different structure your functions should compare the trees and arrive at this conclusion.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
