Counting Sort 1

  • + 0 comments
    from collections import Counter
    
    def countingSort(arr):
        return [dict(Counter(arr)).get(i, 0) for i in range(100)]