wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

The maximum number of nodes in a binary tree of depth K is

A
2K-1
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
3K-1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
2K+1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
2K+1-1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A 2K-1

The maximum number of nodes in a binary tree of depth K is 2K-1, k >=1 . Here the depth of the tree is 1.


A binary tree is a tree data structure in which each node has at most two children, which are referred to as the left child and the right child.


932111_918837_ans_d2579c4ac71b43ceaaf66687253e6818.png

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Introduction to Genetics
BIOLOGY
Watch in App
Join BYJU'S Learning Program
CrossIcon