Juniors
Juniors

Reputation: 11

How to find the root of a binary tree?

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

Upvotes: 0

Views: 227

Answers (1)

Manoj Kumar
Manoj Kumar

Reputation: 64

a. tree with postorder traversal: FCBDG Postorder

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

Upvotes: 1

Related Questions