GATE CS 2013 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0159

The preorder traversal sequence of a binary search tree is 30, 20, 10, 15, 25, 23, 39, 35, 42. Which one of the following is the postorder traversal sequence of the same tree?
  1. A
    10, 20, 15, 23, 25, 35, 42, 39, 30
  2. B
    15, 10, 25, 23, 20, 42, 35, 39, 30
  3. C
    15, 20, 10, 23, 25, 42, 35, 39, 30
  4. D
    15, 10, 23, 25, 20, 35, 42, 39, 30

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/1554/gate2013-43

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