5 lines
197 B
Text
5 lines
197 B
Text
|
|
V items = [(3, ‘Clear drains’), (4, ‘Feed cat’), (5, ‘Make tea’), (1, ‘Solve RC tasks’), (2, ‘Tax return’)]
|
|||
|
|
minheap:heapify(&items)
|
|||
|
|
L !items.empty
|
|||
|
|
print(minheap:pop(&items))
|