Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def tri_compte2(tab,M):
- compte = []
- for i in range(0,M+1):
- compte.append(0)
- for i,val in enumerate(tab):
- compte[val] = compte[val]+1
- tab.clear()
- for i, val in enumerate(compte):
- for j in range(0,val):
- tab.append(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement