You are viewing a single comment's thread. Return to all comments →
def countingSort(arr): # Write your code here res=[0]*(max(arr)+1) s=[] for i in arr: res[i]+=1 for i in range(len(res)): s.extend([i]*res[i]) return s
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 →