diff --git a/codeflash/bubble_sort.py b/codeflash/bubble_sort.py index 2b35a5f52..f861a4264 100644 --- a/codeflash/bubble_sort.py +++ b/codeflash/bubble_sort.py @@ -1,11 +1,6 @@ def mysorter(arr): - print("codeflash stdout: Sorting list") - for i in range(len(arr)): - for j in range(len(arr) - 1): - if arr[j] > arr[j + 1]: - temp = arr[j] - arr[j] = arr[j + 1] - arr[j + 1] = temp - print(f"result: {arr}") + arr.sort() return arr -mysorter([5,4,3,2,1]) \ No newline at end of file + + +mysorter([5, 4, 3, 2, 1])