ultraMegaQuickSort.py released
This commit is contained in:
1 parent
e7e7cd1b8a
commit
631e7f0021
1 file changed
+3
-1
@@ -29,8 +29,10 @@ def ultrasort(list):
|
||||
return sortedlist
|
||||
|
||||
timestart = time.time_ns()
|
||||
|
||||
if type == "1":
|
||||
print(ultrasort(list))
|
||||
else:
|
||||
print(sorted(list))
|
||||
elapsed = time.time_ns() - timestart
|
||||
elapsed = elapsed / 1000000000
|
||||
print(str(datetime.timedelta(seconds=elapsed)))
|
||||
Reference in new issue
Block a user