The inorder and preorder traversals of a binary tree are dbefagc and abdefcg…

2022

The inorder and preorder traversals of a binary tree are dbefagc and abdefcg respectively. The post order traversal of the binary tree is —

  1. A.

    edbgfca

  2. B.

    debfgca

  3. C.

    dfebgca

  4. D.

    defgbca

Attempted by 537 students.

Show answer & explanation

Correct answer: C

Preorder: abdefcg → first element a = root Inorder: dbef a gc Left subtree inorder: dbef

Explore the full course: Up Lt Grade Assistant Teacher 2025