(i, j int)
| 11 | return h[i] > h[j] |
| 12 | } |
| 13 | func (h MaxHeap) Swap(i, j int) { |
| 14 | h[i], h[j] = h[j], h[i] |
| 15 | } |
| 16 | func (h *MaxHeap) Push(x interface{}) { |
| 17 | *h = append(*h, x.(int)) |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected