You have been given the order of the nodes (vertices) as visited by a postorder traversal and also the order of the nodes (vertices) as visited by an inorder traversal, do you have enough information to reconstruct the original tree? (We assume that the nodes all have unique values).
If your answer is "yes" can you explain it in an example tree of
about 7 to 10 nodes and see what happens. If your answer is "no",
explain that too.
Get Answers For Free
Most questions answered within 1 hours.