Skip to content

Construct a method takes an array and returns a sorted array using Ruby 🎯

Notifications You must be signed in to change notification settings

silva4dev/ruby-bubble-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Bubble Sort

Build a method #bubble_sort that takes an array and returns a sorted array. It must use the bubble sort methodology (using #sort would be pretty pointless, wouldn’t it?).

 bubble_sort([4,3,78,2,0,2])
=> [0,2,2,3,4,78]

About

Construct a method takes an array and returns a sorted array using Ruby 🎯

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages