diff --git a/bubble_sort.py b/bubble_sort.py index db7db5f..bd9a0d7 100644 --- a/bubble_sort.py +++ b/bubble_sort.py @@ -1,8 +1,3 @@ def sorter(arr): - 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 + arr.sort() return arr