GATE CS 2025 · Set 1 · Trees
MSQ · 1 mark · Problem PROG-DSTR-0066
Which of the following statement(s) is/are TRUE for any binary search tree (BST) having \(n\) distinct integers?
- A
The maximum length of a path from the root node to any other node is \((n - 1)\).
- B
An inorder traversal will always produce a sorted sequence of elements.
- C
Finding an element takes \(O(\log_2 n)\) time in the worst case.
- D
Every BST is also a Min-Heap.
Solve it on GATE DA practice →More Basic Data Structures problems
Show the worked solution
Official GATE Answer Key: A, B.See full step-by-step discussion on GateOverflow:
https://gateoverflow.in/460064/gate-cse-2025-set-1-question-16
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com