...
KVS 22-12-2018 Part-A
October 23, 2023
Research-Aptitude
October 23, 2023
KVS 22-12-2018 Part-A
October 23, 2023
Research-Aptitude
October 23, 2023

Algorithms

Question 48

In a binary tree, for every node the difference between the number of nodes in the left and right subtrees is at most 2. If the height of the tree is h > 0, then the minimum number of nodes in the tree is:

A
2h-1
B
2h-1 + 1
C
2h – 1
D
2h
Question 48 Explanation: 
Let’s take an example,

Above tree satisfies the property given in the question. Hence, only option (B) satisfies it.
Correct Answer: B
Question 48 Explanation: 
Let’s take an example,

Above tree satisfies the property given in the question. Hence, only option (B) satisfies it.

Leave a Reply

Your email address will not be published. Required fields are marked *