diff --git a/codeflash/bubble_sort.py b/codeflash/bubble_sort.py new file mode 100644 index 000000000..df09e795c --- /dev/null +++ b/codeflash/bubble_sort.py @@ -0,0 +1,6 @@ +def sorter(arr): + print("codeflash stdout: Sorting list") + # Uses Python's built-in Timsort algorithm, much faster than insertion sort or bubble sort + arr.sort() + print(f"result: {arr}") + return arr