Created
December 26, 2019 22:17
-
-
Save parzibyte/ee9b02f5cee30306b612a4f37980f495 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
// Divide y vencerás | |
private static void quicksort(int arreglo[], int izquierda, int derecha) { | |
if (izquierda < derecha) { | |
int indiceParticion = particion(arreglo, izquierda, derecha); | |
quicksort(arreglo, izquierda, indiceParticion); | |
quicksort(arreglo, indiceParticion + 1, derecha); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment