Computer Science EngineeringHard

The maximum number of nodes in a binary tree of height h (root at height 0) is

  1. A. 2^h - 1
  2. B. 2^(h+1) - 1
  3. C. 2^(h+1)
  4. D. 2^h + 1

Correct answer: B. 2^(h+1) - 1

Levels 0 to h hold 1+2+...+2^h = 2^(h+1) - 1 nodes.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic