(arr)
| 150 | |
| 151 | |
| 152 | def heapSort(arr): |
| 153 | global arrLen |
| 154 | arrLen = len(arr) |
| 155 | buildMaxHeap(arr) |
| 156 | for i in range(len(arr) - 1, 0, -1): |
| 157 | swap(arr, 0, i) |
| 158 | arrLen -= 1 |
| 159 | heapify(arr, 0) |
| 160 | return arr |
| 161 | |
| 162 | |
| 163 | def countingSort(arr, maxValue=None): |
nothing calls this directly
no test coverage detected