Content deleted Content added
m →Implementation in pseudocode: arr -> a |
m →Implementation in pseudocode: Added some braces for clarity and fixed gap |
||
Line 37:
{{wikicode}}
'''function''' heapSort(a, count) {
'''var''' ''int'' start := count / 2 - 1, end := count - 1
Line 48:
sift(a, 0, end)
end := end - 1
}
'''function''' sift(a, start, count) {
'''var''' ''int'' root := start, child
Line 61 ⟶ 62:
'''else'''
'''return'''
}
== External links ==
|