GATE CS 2005 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0225

Postorder traversal of a given binary search tree, T produces the following sequence of keys10, 9, 23, 22, 27, 25, 15, 50, 95, 60, 40, 29Which one of the following sequences of keys can be the result of an in-order traversal of the tree T?
  1. A
    9, 10, 15, 22, 23, 25, 27, 29, 40, 50, 60, 95
  2. B
    9, 10, 15, 22, 40, 50, 60, 95, 23, 25, 27, 29
  3. C
    29, 15, 9, 10, 25, 22, 23, 27, 40, 60, 50, 95
  4. D
    95, 50, 60, 40, 27, 23, 22, 25, 10, 9, 15, 29

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

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1369/gate2005-33

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