You are viewing a single comment's thread. Return to all comments →
Last part is redundant, this works better:
__ = input() sol = [0] * 100 for i in [int(n) for n in input().split()]: sol[i] += 1 print(*sol)
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 1
You are viewing a single comment's thread. Return to all comments →
Last part is redundant, this works better: