Example:
(using value rather than index and list index and heap represented as a sorted array for clarity)
Input: [1, 10, 15], [4, 5, 6], [7, 8, 9]
Initial heap: [1, 4, 7]
Delete 1, insert 10
Result: [1]
Heap: [4, 7, 10]
Delete 4, insert 5
Result: [1, 4]
Heap: [5, 7, 10]
Delete 5, insert 6
Result: [1, 4, 5]
Heap: [6, 7, 10]
Delete 6, insert nothing
Result: [1, 4, 5, 6]
Heap: [7, 10]
Delete 7, insert 8
Result: [1, 4, 5, 6, 7]
Heap: [8, 10]
Delete 8, insert 9
Result: [1, 4, 5, 6, 7, 8]
Heap: [9, 10]
Delete 9, insert nothing
Result: [1, 4, 5, 6, 7, 8, 9]
Heap: [10]
Delete 10, insert 15
Result: [1, 4, 5, 6, 7, 8, 9, 10]
Heap: [15]
Delete 15, insert nothing
Result: [1, 4, 5, 6, 7, 8, 9, 10, 15]
Heap: []
Done