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 30348f1 commit db517cdCopy full SHA for db517cd
pydantic_ai_slim/pydantic_ai/bubble_sort.py
@@ -1,3 +1,10 @@
1
def sorter(arr):
2
- arr.sort()
+ print("codeflash stdout: Sorting list")
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