You are viewing a single comment's thread. Return to all comments →
Solution in Python 3
def countingSort(arr): arr.sort() result = [] sorted_tuple = tuple(arr) for i in range(100): value = sorted_tuple.count(i) result.append(value) return result
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 →
Solution in Python 3