All pastes #940349 Raw Edit

Unnamed

public c v1 · immutable
·published 2008-03-12 22:13 UTC
rendered paste body
tableau = [3, 4, 1, 5, 2, 1]matrice = []index_tab = 0for (index_tab=0; index_tab<longueur(tableau); index_tab++) {    index_mat = 0    while (matrice[index_mat] > tableau[index_tab])        # on avance index_mat jusqu'a ce qu'on trouve la bonne place pour inserer notre valeur        index_mat++    # on l'insere a l'index trouvé    matrice.inserer(index_mat, tableau[index_tab])}