Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created July 8, 2020 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/2fc134659f290e08efa4642c688f4b2f to your computer and use it in GitHub Desktop.
Save BMU-Verlag/2fc134659f290e08efa4642c688f4b2f to your computer and use it in GitHub Desktop.
for (int i = groesse - 1; i >= 0; i--){
int tausch = arr[i];
arr[i] = arr[0];
arr[0] = tausch;
heapify(arr, i, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment