This is my implementation of the bubble sort algorithm
This project is part of the Microverse curriculum in Ruby module!
Explore the docs »
View Demo
Report Bug
Request Feature
This is the first project of the Microverse Ruby Module
To test the code you need to give it some test cases like the ones below and execute it to see if it performs as expected:
bubble_sort_by(["burgers","hi","hello","hey"]) do |left, right|
left.length - right.length
end
print bubble_sort([1, 3, 42, 54, 21, 221, 31, 2, 0])
This project was built using these technologies.
- Ruby
- Rubocop
- VsCode
You can see it working here
👤 Author
- LinkedIn: Phillip Musiime
- GitHub: PhillipUg
- Twitter: @Phillip_Ug
- E-mail: [email protected]
This project is MIT licensed.