Skip to content

Commit

Permalink
added the testing arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
imhilla committed May 12, 2020
1 parent bd40270 commit fefce50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bubble_sort.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ def bubble_sort_by(array)
end
array
end

puts bubble_sort([4, 3, 7,8, 2, 0, 2])

puts bubble_sort_by(%w[hi hello hey]) { |left, right| left.size - right.size }

0 comments on commit fefce50

Please sign in to comment.