(x interface{})
| 4 | func (h IntHeap) Less(i, j int) bool { return h[i] < h[j] } |
| 5 | func (h IntHeap) Swap(i, j int) { h[i], h[j] = h[j], h[i] } |
| 6 | func (h *IntHeap) Push(x interface{}) {*h = append(*h, x.(int))} |
| 7 | func (h *IntHeap) Pop() interface{} { |
| 8 | old := *h |
| 9 | n := len(old) |