Question

Consider a min-heap represented as an array: [1, 3, 5, 7, 9]. If the element 2 is inserted into this min-heap, what will be the state of the heap array after the insertion and heapify-up operation?

A [1, 2, 5, 7, 9, 3]
B [1, 3, 2, 7, 9, 5]
C [1, 2, 3, 7, 9, 5]
D [2, 1, 5, 7, 9, 3]
E [1, 3, 5, 7, 9, 2]
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)