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 3fb49c3 commit ace7938Copy full SHA for ace7938
code_to_optimize/bubble_sort.py
@@ -1,8 +1,10 @@
1
def sorter(arr):
2
+ print("codeflash stdout: Sorting array")
3
for i in range(len(arr)):
4
for j in range(len(arr) - 1):
5
if arr[j] > arr[j + 1]:
6
temp = arr[j]
7
arr[j] = arr[j + 1]
8
arr[j + 1] = temp
9
+ print(f"result: {arr}")
10
return arr
0 commit comments