| 9 | import "github.com/TheAlgorithms/Go/constraints" |
| 10 | |
| 11 | type MaxHeap struct { |
| 12 | slice []Comparable |
| 13 | heapSize int |
| 14 | indices map[int]int |
| 15 | } |
| 16 | |
| 17 | func (h *MaxHeap) Init(slice []Comparable) { |
| 18 | if slice == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected