diff --git a/codeflash/bubble_sort.py b/codeflash/bubble_sort.py new file mode 100644 index 000000000..2ae5ac66c --- /dev/null +++ b/codeflash/bubble_sort.py @@ -0,0 +1,8 @@ +def mysorter(arr): + print("codeflash stdout: Sorting list") + arr.sort() # Python's built-in sort (Timsort), much faster than bubble sort + print(f"result: {arr}") + return arr + + +mysorter([5, 4, 3, 2, 1])