GATE IT 2005 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0218

In a binary tree, for every node the difference between the number of nodes in the left and right subtrees is at most 2. If the height of the tree is h > 0, then the minimum number of nodes in the tree is
  1. A
    \(2^{h-1}\)
  2. B
    \(2^{h-1} + 1\)
  3. C
    \(2^h - 1\)
  4. D
    \(2^h\)

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

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/3811/gate2005-it-50

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com