Skip to content

Commit

Permalink
Update bubble_sort.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
imhilla committed May 12, 2020
1 parent e3adaad commit cf67d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bubble_sort.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Array
def bubble_sort
n = self.length
n = self.size
loop do
swapped = false
(n - 1).times do |i|
Expand Down

0 comments on commit cf67d66

Please sign in to comment.