Skip to content

Instantly share code, notes, and snippets.

@teldridge11
Created May 20, 2016 18:20
Show Gist options
  • Save teldridge11/773252a8ced7c8195a333f50dece6574 to your computer and use it in GitHub Desktop.
Save teldridge11/773252a8ced7c8195a333f50dece6574 to your computer and use it in GitHub Desktop.
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