MCPcopy Index your code
hub / github.com/hustcc/JS-Sorting-Algorithm / buildMaxHeap

Function buildMaxHeap

src/pythonSortTest.py:128–131  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

126
127
128def buildMaxHeap(arr):
129 import math
130 for i in range(math.floor(len(arr) / 2), -1, -1):
131 heapify(arr, i)
132
133
134def heapify(arr, i):

Callers 1

heapSortFunction · 0.70

Calls 1

heapifyFunction · 0.70

Tested by

no test coverage detected