• Tutorials
  • Courses
  • Tracks

Q2.

Last Updated :
Discuss
Comments

In a max heap, for any node at index i, what is the index of its parent (1-based indexing) ?

 i / 2

(i - 1) / 2

2 * i

i + 1

Share your thoughts in the comments