You are viewing a single comment's thread. Return to all comments →
def countSort(arr): n = len(arr) mid = n // 2 ar = [''] * n for i in range(n): ar[int(arr[i][0])] += "- " if i < mid else arr[i][1] + " " for i in range(n): print(ar[i], end='')
Seems like cookies are disabled on this browser, please enable them to open this website
The Full Counting Sort
You are viewing a single comment's thread. Return to all comments →