Counting Sort 1

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