MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / heapifyDown

Method heapifyDown

sort/heapsort.go:96–98  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

94}
95
96func (h MaxHeap) heapifyDown(i int) {
97 heapifyDown(h.slice, h.heapSize, i, h.more, h.swap)
98}
99
100func heapifyDown[T any](slice []T, N, i int, moreFunc func(i, j int) bool, swapFunc func(i, j int)) {
101 l, r := 2*i+1, 2*i+2

Callers 3

HeapifyMethod · 0.95
PopMethod · 0.95
UpdateMethod · 0.95

Calls 1

heapifyDownFunction · 0.85

Tested by

no test coverage detected