GATE CS 2026 Set 1 | Question 62
Programming & Data Structures › Trees · NAT · 2 marks · Answer: 7
- Question 62Programming & Data Structuresnat2 marksThe following sequence corresponds to the preorder traversal of a binary search tree : 50, 25, 13, 40, 30, 47, 75, 60, 70, 80, 77 The position of the element 60 in the postorder traversal of is ______. (answer in integer) Note: The position begins with 1.
Answer: 7
Solution
Answer: 7 Inserting the preorder sequence into an empty BST rebuilds : Postorder (left, right, root): 13, 30, 47, 40, 25, 70, 60, 77, 80, 75, 50. 60 is at position 7.
More GATE PYQ on Trees
All GATE CS Programming & Data Structures PYQ →Attempt GATE CS 2026 Set 1 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →