Commit 34d8a144 by BellCodeEditor

auto save

parent 92449b0c
Showing with 13 additions and 5 deletions
list1 = []
for a in range(0, 1000):
for b in range(0, 1000):
list1.insert(0, 0)
\ No newline at end of file
import time
list1 = [20,17,9,13,5,6,4,49]
stat = time.time()
print(stat)
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