Counting Sort 1

  • + 0 comments

    def countingSort(arr):

    buckets = [0] * 100
    for i in range(len(arr) - 1):
        buckets[arr[i]] += 1
    return buckets