Computer Science EngineeringHard

The number of leaf nodes in a perfect binary tree of height 5 (root at height 0) is

  1. A. 16
  2. B. 32
  3. C. 31
  4. D. 64

Correct answer: B. 32

A perfect binary tree of height h has 2^h leaves, so 2^5 = 32.

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

Exams that ask this topic