What goes in the blank?
import heapq # smallest element first heapq.____(heap, value)
Answer: heappush
heappush keeps the min-heap invariant; heappop removes the smallest.import heapq # smallest element first heapq.____(heap, value)
Answer: heappush
heappush keeps the min-heap invariant; heappop removes the smallest.