Skip to content

Commit ce0a013

Browse files
Ishmeet-Singh-Sagguharshildarji
authored andcommitted
Update bubble_sort.py (TheAlgorithms#535)
1 parent f0d5bc6 commit ce0a013

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sorts/bubble_sort.py

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ def bubble_sort(collection):
1717
1818
>>> bubble_sort([-2, -5, -45])
1919
[-45, -5, -2]
20+
21+
>>> bubble_sort([-23,0,6,-4,34])
22+
[-23,-4,0,6,34]
2023
"""
2124
length = len(collection)
2225
for i in range(length-1):

0 commit comments

Comments
 (0)