Counting Sort 1

  • + 0 comments

    python solution

        length = len(arr)
        result = [0] * length
        for i in arr:
            result[i] = result[i] + 1
        return result[:100]