MCPcopy Create free account
hub / github.com/geekcomputers/Python / heap_sort.py

File heap_sort.py

Sorting Algorithms/heap_sort.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def heapify(nums, heap_size, root_index):
2 # Assume the index of the largest element is the root index
3 largest = root_index
4 left_child = (2 * root_index) + 1

Callers

nothing calls this directly

Calls 1

heap_sortFunction · 0.85

Tested by

no test coverage detected