GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2020

GATE 2020 · CS · MCQ · 1 mark · Programming and Data Structures › Binary Search Trees

GATE 2020 Computer Science and Information Technology question: The preorder traversal of a binary search tree is 15, 10, 12, 11, 20, 18, 16, 19. Which…

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

Show answer

Official answer: B

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion