Vidyalelo
Data Structure · Q26

Heaps

Programming · Data Structure · question 26

Q26

In a binary heap represented as an array, what is the index of the left child of the node at index i?

A.
2 * i + 1
Answer
B.
2 * i
C.
2 * i + 2
D.
2 * i - 1

Answer: Option A

Solution

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