You are viewing a single comment's thread. Return to all comments →
def countingSort(arr): count_arr = [0]*100 for i in arr: count_arr[i] +=1 return count_arr
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 →
def countingSort(arr): count_arr = [0]*100 for i in arr: count_arr[i] +=1 return count_arr