Skip to content

Commit

Permalink
Revert "Update bubble_sort.py"
Browse files Browse the repository at this point in the history
  • Loading branch information
AnupKumarPanwar authored Aug 26, 2016
1 parent abd9d78 commit a04d5c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sorts/bubble_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def bubble_sort(collection):
[-45, -5, -2]
"""
length = len(collection)
for i in range(length-1):
for i in range(length):
for j in range(length-1):
if collection[j] > collection[j+1]:
collection[j], collection[j+1] = collection[j+1], collection[j]
Expand Down

0 comments on commit a04d5c5

Please sign in to comment.