GATE / CS ARCHIVE

GATE CSE 2015 SET 3 / QUESTION 27

GATE CSE 2015 Set 3 Q27

Data Structures · Binary Search & Balanced Trees · Full GATE CSE 2015 Set 3 paper

GATE 2015 Set 3, Q27 1 mark · MCQ
Report issue

Binary Search & Balanced Trees

Question 27, GATE 2015: Insert 71,65,84,69,67,83, in that order, into an initially empty binary search tree. Which element is at the lowest (deepest) level? (A) 65; (B) 67; (C) 69; (D) 83.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (8 steps)

1. Insertion gives root71, left65, right84; 69 is 65’s right child, 67 is 69’s left child, 83 is 84’s left child.

2. The deepest node is 67 at depth 3, B.

Original paper, page 62 · Answer key