We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8590718 commit 86da255Copy full SHA for 86da255
day31/python/Bubblesort.py
@@ -0,0 +1,15 @@
1
+```
2
+Name:Dipto Chakrabarty
3
+Topic:Bubble Sort
4
+Date:1/02/2019
5
6
+
7
+#taking the array and storing in a list
8
+l=list(map(int,input().split()))
9
+n=len(l) #length of list
10
+for i in range(n):
11
+ for j in range(n-i-1):
12
+ #sorting based on conditions
13
+ if(l[j]>l[j+1]):
14
+ l[j],l[j+1]=l[j+1],l[j]
15
+print(l)
0 commit comments