The inorder and preorder traversal of binary tree are d, b, e, a, f, c, g and…

2025

The inorder and preorder traversal of binary tree are d, b, e, a, f, c, g and a, b, d, e, c, f, g respectively. The postorder traversal of the binary tree is:

Answer: A. d, e, b, f, g, c, aThe preorder traversal starts with 'a', identifying it as the root. In the inorder sequence, elements left of 'a' form the left subtree (d, b, e) and right…

  1. A.

    d, e, b, f, g, c, a

  2. B.

    e, d, b, g, f, c, a

  3. C.

    e, d, b, f, g, c, a

  4. D.

    d, e, f, g, b, c, a

Attempted by 238 students.

Show answer & explanation

Correct answer: A

The preorder traversal starts with 'a', identifying it as the root. In the inorder sequence, elements left of 'a' form the left subtree (d, b, e) and right elements form the right subtree (f, c, g). Recursively determining subtrees yields left postorder d, e, b and right postorder f, g, c. Combining these with the root gives the final postorder traversal: d, e, b, f, g, c, a.

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…