How to find the root of a binary tree?

Viewed 26

Find the root of each of the following binary trees:

a) tree with postorder traversal FCBDG

b) tree with preorder traversal IBCDFEN

c) tree with inorder traversal CBIDFGE

I don't know how to do this, can someone guide me how to do it @@ Thanks!

1 Answers

a. tree with postorder traversal: FCBDG Postorder

Inorder (Left, Root, Right) Preorder (Root, Left, Right) Postorder (Left, Right, Root)

Related