Commit 34d8a144 by BellCodeEditor

auto save

parent 92449b0c
Showing with 13 additions and 5 deletions
list1 = [] import time
for a in range(0, 1000): list1 = [20,17,9,13,5,6,4,49]
for b in range(0, 1000): stat = time.time()
list1.insert(0, 0) print(stat)
\ No newline at end of file n=1
w=1
for i in range(0,len(list1)-n):
for j in range(0,len(list1)-w):
if list1[j] > list1[j+1]:
list1[j],list1[j+1]=list1[j+1],list1[j]
print(list1)
end = time.time()
print(end-stat)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment