Which statement is correct? A complete binary tree of height h
-
A
Is a technique in which a function calls itself
-
B
Follows the first-in first-out (FIFO) principle
-
C
Is a self-balancing binary search tree
-
D
Has at most 2^(h+1) − 1 nodes
Correct answer
Correct answer
D. Has at most 2^(h+1) − 1 nodes
Explanation
A complete binary tree of height h has at most 2^(h+1) − 1 nodes.
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ