Skip to content

Commit e78f2aa

Browse files
committed
Bubble sort added
1 parent 1da6ac0 commit e78f2aa

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Sorting/Untitled.ipynb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,19 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 11,
5+
"execution_count": 15,
66
"metadata": {},
77
"outputs": [
88
{
99
"name": "stdin",
1010
"output_type": "stream",
1111
"text": [
12-
"Enter N 4\n",
12+
"Enter N 5\n",
1313
" 3\n",
14-
" 2\n",
1514
" 4\n",
16-
" 1\n"
15+
" 1\n",
16+
" 3\n",
17+
" 4\n"
1718
]
1819
},
1920
{
@@ -22,8 +23,9 @@
2223
"text": [
2324
"Sorted array is:\n",
2425
"1\n",
25-
"2\n",
2626
"3\n",
27+
"3\n",
28+
"4\n",
2729
"4\n"
2830
]
2931
}
@@ -48,7 +50,7 @@
4850
" \n",
4951
"print (\"Sorted array is:\")\n",
5052
"for i in range(len(arr)):\n",
51-
" print (\"%d\" %arr[i]),"
53+
" print (arr[i]),"
5254
]
5355
}
5456
],

0 commit comments

Comments
 (0)