You are viewing a single comment's thread. Return to all comments →
Thanks for teaching me what bucketsort is, I replicated a scrappy version of yours.
n = int(input().strip()) unsorted = [] lengths = [] for k in range(n): number = str(input().strip()) unsorted.append(number) lengths.append(len(number)) biglist = zip(lengths,unsorted) for i in sorted(biglist): print(i[1])
Seems like cookies are disabled on this browser, please enable them to open this website
Big Sorting
You are viewing a single comment's thread. Return to all comments →
Thanks for teaching me what bucketsort is, I replicated a scrappy version of yours.