You are viewing a single comment's thread. Return to all comments →
Python3
def countingSort(arr): # Write your code here freq = [ arr.count(i) for i in range(max(arr))] x = [ num for num,count in enumerate(freq) for i in range(count)] return x
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 →
Python3