3 ms·
You are, in this case, better off just using the ultimate bucket sort: shove it into a histogram. hist = [0]*100 for x in xs: hist[x-1] += 1 E
by edflsafoiewq 8y ago
You are, in this case, better off just using the ultimate bucket sort: shove it into a histogram.
hist = [0]*100
for x in xs:
hist[x-1] += 1
Epsilon algorithmic knowledge required.