Stats
1,897
reputation
55k
reached
131
answers
22
questions
Loading…
Collectives
About
21 year old from germany.
Best sorting algorithm on earth
from time import sleep
L = [1,3,5,2,5,42,6,3,6,3,6,67,7,7,7,456,456,4,234,426,23,2,45,2]
out = []
def proc(val):
sleep(val / 1000)
out.append(val)
for i in L:
thread = Thread(target = proc, args = (i, ))
thread.start()
sleep((max(L) + 1) / 1000)
print(out)
Badges
View all badges
2
gold badges
-
Unsung HeroApr 12, 2020
-
FanaticDec 10, 2018
30
bronze badges
-
Vox PopuliNov 4, 2018
-
BenefactorAug 7, 2019
-
SuffrageNov 4, 2018
Top tags
View all tags