The Full Counting Sort

  • + 0 comments

    Python

    def countSort(arr):
        for i in range(len(arr)//2):
            arr[i][1] = '-'
        arr.sort(key=lambda x: int(x[0]))
        [print(c[1], end=' ') for c in arr]