Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
128
def
buildMaxHeap(arr):
129
import
math
130
for
i in range(math.floor(len(arr) / 2), -1, -1):
131
heapify(arr, i)
132
133
134
def
heapify(arr, i):
Callers
1
heapSort
Function · 0.70
Calls
1
heapify
Function · 0.70
Tested by
no test coverage detected