Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 26, 2019 22:17
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 parzibyte/ee9b02f5cee30306b612a4f37980f495 to your computer and use it in GitHub Desktop.
Save parzibyte/ee9b02f5cee30306b612a4f37980f495 to your computer and use it in GitHub Desktop.
// 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