The keys 20, 10, 30, 5, 15 are inserted one by one into an initially empty min-heap. What is the array representation of the heap?
- A10 5 30 20 15
- B5 20 30 10 15
- C5 10 30 20 15
- D5 10 15 20 30
Correct answer: C
The keys 20, 10, 30, 5, 15 are inserted one by one into an initially empty min-heap. What is the array representation of the heap?