Bubble sort algorithm.
- Ruby
- The code has been tested using the following test cases:
bubble_sort(35, 15, 61, 453, 84)
bubble_sort_by(["hi","hello","hey"]) {|i, j| i.length - j.length}
bubble_sort(18, 24, 2, 93, 16)
bubble_sort_by(["patrick","marios","microverse"]) {|i, j| i.length - j.length}
👤 Patrick Nyatindo
- Github: @nyatindopatrick
- Twitter: @nyatindopatrick
- Linkedin: Patrick-nyatindo
👤 Marios Kanellopoulos
- Github: @mariosknl
- Twitter: @mariosknl
- Linkedln: marios-kanellopoulos
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
- The Odin Project
- Codecademy
This project is MIT licensed.