GATE CS 2007 · Arrays & Matrix Representation

MCQ · 1 mark · Problem PROG-DSTR-0201

The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number of nodes in a binary tree of height h is:
  1. A
    \(2^{h}-1\)
  2. B
    \(2^{h-1}-1\)
  3. C
    \(2^{h+1}-1\)
  4. D
    \(2^{h+1}\)

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

Show the worked solutionOfficial GATE Answer Key: Option C.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1210/gate2007-12

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