GATE CS 2020 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0108

The preorder traversal of a binary search tree is 15,10,12,11,20,18,16,19. Which one of the following is the postorder traversal of the tree?
  1. A
    10,11,12,15,16,18,19,20
  2. B
    11,12,10,16,19,18,20,15
  3. C
    20,19,18,16,15,12,11,10
  4. D
    19,16,18,20,11,12,10,15

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/333226/gate2020-cs-5

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