Counting Sort 1

  • + 0 comments
    def countingSort(arr):
        # Write your code here
        freq = [0]*100
        for i in range(len(arr)):
            freq[arr[i]] += 1
        return freq