All pastes #940338 Raw Edit

Unnamed

public python v1 · immutable
·published 2008-03-12 22:04 UTC
rendered paste body
tableau = [3, 4, 1, 5, 2, 1]matrice = []i = 0for i in range(len(tableau)):    j = 0    while len(matrice) > 0 and j < len(matrice) and matrice[j] > tableau[i]:        j += 1    matrice.insert(j, tableau[i])print tableauprint matrice