diff options
author | Santo Cariotti <dcariotti24@gmail.com> | 2020-07-01 15:58:58 +0200 |
---|---|---|
committer | Santo Cariotti <dcariotti24@gmail.com> | 2020-07-01 15:58:58 +0200 |
commit | d6f074008d3082898f9abfe25a9fff76aa08ebac (patch) | |
tree | de92c5ba5533647eeb17d350987fbecd209a23e7 | |
parent | 5280f82ea13830e16743c515e3c1aa5f2b29a5b6 (diff) |
fix: quicksort r index
-rw-r--r-- | I_anno/Programmazione_2/algorithms/quicksort.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/I_anno/Programmazione_2/algorithms/quicksort.cc b/I_anno/Programmazione_2/algorithms/quicksort.cc index a646840..795bd7b 100644 --- a/I_anno/Programmazione_2/algorithms/quicksort.cc +++ b/I_anno/Programmazione_2/algorithms/quicksort.cc @@ -29,7 +29,7 @@ int main() { cout << a[i] << ' '; } cout << endl; - quicksort(a, 0, 9); + quicksort(a, 0, 8); for(int i = 0; i < 9; ++i) { cout << a[i] << ' '; } |