You are viewing a single comment's thread. Return to all comments →
shorter and accepted too
from collections import Counter n, a =int(input()), list(map(int, input().split())) print(*(Counter(sorted(a)).elements()))
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 →
shorter and accepted too