diff --git a/codeflash/bubble_sort.py b/codeflash/bubble_sort.py new file mode 100644 index 000000000..4fe03e0b7 --- /dev/null +++ b/codeflash/bubble_sort.py @@ -0,0 +1,8 @@ +def mysorter(arr): + print("codeflash stdout: Sorting list") + arr.sort() # Built-in in-place Timsort, O(n log n) + print(f"result: {arr}") + return arr + + +mysorter([5, 4, 3, 2, 1])