...
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!