Commit afde84c4 by BellCodeEditor

save project

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 = [1,23,24,324,2,34,12]
n=len(list1)
time1=time.time()
print(time1)
for a in range(0, n-1):
for b in range(0, n-1):
if list1[b] > list1[b+1]:
list1[b],list1[b+1] = list1[b+1],list1[b]
print(list1)
time2=time.time()-time1
print(time2)
\ No newline at end of file
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