Vidyalelo
Data Structure · Q6

Heaps

Programming · Data Structure · question 6

Q6

What is the height of a complete binary heap with n nodes?

A.
⌈log2(n + 1)⌉
Answer
B.
⌈log2(n)⌉
C.
⌈n / 2⌉
D.
log2(n) + 1

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board