GATE DA 2024 · Trees

MSQ · 1 mark · Problem PROG-DSTR-0057

Consider the following tree traversals on a full binary tree:
(i) Preorder
(ii) Inorder
(iii) Postorder
Which of the following traversal options is/are sufficient to uniquely reconstruct the full binary tree?
  1. A
    (i) and (ii)
  2. B
    (ii) and (iii)
  3. C
    (i) and (iii)
  4. D
    (ii) only

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial GATE Answer Key: A, B, C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/422944/gate-ds%26ai-2024-question-18

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com