Update bubble_sort.py (#535)

This commit is contained in:
Ishmeet-Singh-Saggu 2018-10-27 16:51:44 +05:30 committed by Harshil
parent f0d5bc6ece
commit ce0a013ad7

View File

@ -17,6 +17,9 @@ def bubble_sort(collection):
>>> bubble_sort([-2, -5, -45])
[-45, -5, -2]
>>> bubble_sort([-23,0,6,-4,34])
[-23,-4,0,6,34]
"""
length = len(collection)
for i in range(length-1):