Created
July 8, 2020 15:45
-
-
Save BMU-Verlag/2af07507b22106d7cf475205c2485fd2 to your computer and use it in GitHub Desktop.
This file contains 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 mergeSort(int arr[], int arr2[], int linkerRand, int rechterRand) | |
{ | |
if (linkerRand < rechterRand) { | |
int mitte = (linkerRand + rechterRand) / 2; | |
mergeSort(arr, arr2, linkerRand, mitte); | |
mergeSort(arr, arr2, mitte + 1, rechterRand); | |
merge(arr, arr2, linkerRand, mitte, rechterRand); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment