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 27395ce commit 30348f1Copy full SHA for 30348f1
pydantic_ai_slim/pydantic_ai/bubble_sort.py
@@ -1,10 +1,3 @@
1
def sorter(arr):
2
- 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}")
+ arr.sort()
10
return arr
0 commit comments