GATE IT 2008 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0188

The following three are known to be the preorder, inorder and postorder sequences of a binary tree. But it is not known which is which.I.MBCAFHPYKII.KAMCBYPFHIII.MABCKYFPHPick the true statement from the following.
  1. A
    I and II are preorder and inorder sequences, respectively
  2. B
    I and III are preorder and postorder sequences, respectively
  3. C
    II is the inorder sequence, but nothing more can be said about the other two sequences
  4. D
    II and III are the preorder and inorder sequences, respectively

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

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3356/gate2008-it-46

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