All mock tests are FREE till 31 December — register to save your progress

A 5-ary tree is tree in which every internal node has exactly 5 children. The number of left nodes in such a tree with 8 internal nodes will be :

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. 33

Explanation

For a full k-ary tree, leaves = (k − 1)i + 1 = 4 × 8 + 1 = 33.

More Data Structures and Algorithms questions