est
import (
    &#34;container/heap&#34;
    &#34;fmt&#34;
)
<span class="com">// An IntHeap is a min-heap of ints.</span>
type IntHeap []int
func (h IntHeap) Len() int           { return len(h) }
func (h IntHeap) Less(i, j int) bool { return h[i] &lt; h[j] }
func (h IntHeap) Swap(i, j int)      { h[i], h[j] = h[j], h[i] }
func (h *IntHeap) Push(x interface{}) {
    <span class="com">// Push and Pop use pointer receivers because they modify the slice&#39;s length,</span>
    <span class="com">// not just i