You are viewing a single comment's thread. Return to all comments →
Short, not cheating python solution:
n = int(raw_input()) cnt = [0] * 100 for i in map(int, raw_input().split()): cnt[i] += 1 print "".join((str(i) + " ") * x for i, x in enumerate(cnt))
Seems like cookies are disabled on this browser, please enable them to open this website
Counting Sort 2
You are viewing a single comment's thread. Return to all comments →
Short, not cheating python solution: