Home » Programming & Data Structure » Programming and data structure miscellaneous » Question

Programming and data structure miscellaneous

Programming & Data Structure

  1. The inorder and preorder traversal of a 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
    1. d e b f g c a
    2. e d b g f c a
    3. e d b f g c a
    4. d e f g b c a
Correct Option: A

The inorder traversal sequence is dbeafcg and the preorder traversal sequence is abdecfg so, the tree is

In the postorder traversal, the sequence is debfgca.



Your comments will be displayed only after manual approval.