Skip to content

Commit 456b46d

Browse files
github-actionsgithub-actions
authored andcommitted
Formatted with psf/black
1 parent 70812a8 commit 456b46d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sorts/bubble_sort_recursion.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ def bubble_sort(array, length: int = 0):
2424
swapped = False
2525
for i in range(length - 1):
2626
if array[i] > array[i + 1]:
27-
array[i], array[i + 1] = array[i + 1], array[i],
27+
array[i], array[i + 1] = (
28+
array[i + 1],
29+
array[i],
30+
)
2831
swapped = True
2932
return array if not swapped else bubble_sort(array, length - 1)
3033

0 commit comments

Comments
 (0)