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

A binary search tree in which every non-leaf node has non-empty left and right subtrees is called a strictly binary tree. Such a tree with 19 leaves :

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

Show answer & explanation

Correct answer: B. has exactly 37 nodes

Explanation

A full binary tree with L leaves has L − 1 internal nodes: 19 + 18 = 37 nodes.

More Data Structures and Algorithms questions