Counting Sort 1

  • + 0 comments

    Python solution

    def countingSort(arr):
        freq = [0] * 100
        
        for n in arr:
            freq[n] += 1
            
        return freq