You are viewing a single comment's thread. Return to all comments →
python
def countSort(arr): res = [[] for _ in range(len(arr)//2)] for i, l in enumerate(arr): res[int(l[0])].append(l[1] if i >= (len(arr) / 2) else '-') print(' '.join(' '.join(subarr) for subarr in res if subarr))
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