Heaps: the most urgent parcel firstLesson 1 of 11Free preview

The most urgent parcel first

Seven morning parcels become the min-heap [2, 5, 3, 6, 8, 9, 4] in 3 swaps. One local rule puts oxygen at the root.