Created
May 20, 2016 18:20
-
-
Save teldridge11/773252a8ced7c8195a333f50dece6574 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void buildHeap(DynamicArray* heap, compareFunction compare) | |
{ | |
// FIXME: implement | |
for(int i=dySize(heap)/2-1;i>=0;i--) { | |
adjustHeap(heap, dySize(heap)-1, i, compare); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment