GATE CS 2017 · Set-2 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0122

The pre-order transversal of a binary search tree is given by 12, 8, 6, 2, 7, 9, 10, 16, 15, 19, 17, 20. Then the post-order traversal of this tree is:
  1. A
    2,6,7,8,9,10,12,15,16,17,19,20
  2. B
    2,7,6,10,9,8,15,17,20,19,16,12
  3. C
    7,2,6,8,9,10,20,17,19,15,16,12
  4. D
    7,6,2,10,9,8,15,16,17,20,19,12

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/118378/gate2017-2-36

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