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 1fd6692 commit 76b9113Copy full SHA for 76b9113
codeflash/bubble_sort.py
@@ -0,0 +1,8 @@
1
+def sorter(arr):
2
+ for i in range(len(arr)):
3
+ for j in range(len(arr) - 1):
4
+ if arr[j] > arr[j + 1]:
5
+ temp = arr[j]
6
+ arr[j] = arr[j + 1]
7
+ arr[j + 1] = temp
8
+ return arr
0 commit comments