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?
  1. A
    The maximum length of a path from the root node to any other node is \((n - 1)\).
  2. B
    An inorder traversal will always produce a sorted sequence of elements.
  3. C
    Finding an element takes \(O(\log_2 n)\) time in the worst case.
  4. D
    Every BST is also a Min-Heap.

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionOfficial 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