Skip to content
Snippets Groups Projects
Verified Commit ed43a76a authored by orestis.malaspin's avatar orestis.malaspin
Browse files

corrected types

parent f6f2995f
No related branches found
No related tags found
No related merge requests found
Pipeline #35894 passed
--- ---
title: "Tris, et complexité" title: "Tris et complexité"
date: "2024-11-18" date: "2024-11-18"
header-includes: | header-includes: |
\usepackage{xcolor} \usepackage{xcolor}
...@@ -184,7 +184,7 @@ void radix_sort(int size,int tab[size]) { ...@@ -184,7 +184,7 @@ void radix_sort(int size,int tab[size]) {
```python ```python
rien decaler(entier taille, entier tab[taille], entier val): rien decaler(entier taille, entier tab[taille], entier val):
pour i de 0 à taille-1: pour i de 0 à taille-1:
taille[i] -= val tab[i] -= val
``` ```
. . . . . .
...@@ -639,7 +639,7 @@ rien tri_a_bulles(entier tableau[]) ...@@ -639,7 +639,7 @@ rien tri_a_bulles(entier tableau[])
trié = vrai trié = vrai
pour j de 0 à i-1: pour j de 0 à i-1:
si (tableau[j] > tableau[j+1]) si (tableau[j] > tableau[j+1])
échanger(array[j], array[j+1]) échanger(tableau[j], tableau[j+1])
trié = faux trié = faux
si trié si trié
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment