You are viewing a single comment's thread. Return to all comments →
def countSort(arr): for i in range(len(arr)//2): arr[i][1] = '-' arr.sort( key=lambda x : int(x[0])) print(*(x[1] for x in arr))
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 →
python