Skip to content
Snippets Groups Projects
Commit c87ed200 authored by paul.albuquer's avatar paul.albuquer
Browse files

changed 2 to 1 in 'if' pseudocode quicksort

parent 34545a1a
Branches
Tags
No related merge requests found
......@@ -140,7 +140,7 @@ int low, high; // les indices min/max des tableaux à trier
```C
void quicksort(array, low, high) {
if (more than 2 elems) {
if (more than 1 elems) {
pivot_ind = partition(array, low, high);
if (something left of pivot)
quicksort(array, low, pivot_ind - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment