Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/qs.cs Secret

Created August 30, 2021 16:32
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/725a6b2730372241ab08229742da2a8e to your computer and use it in GitHub Desktop.
Save parzibyte/725a6b2730372241ab08229742da2a8e to your computer and use it in GitHub Desktop.
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