https://github.com/abongsjoel/ruby-bubble-sort
The project built a method #bubble_sort that takes an array of numbers and returns a sorted array, as well as a method #bubble_sort_by that takes an array of strings and sorts it by string length.
https://github.com/abongsjoel/ruby-bubble-sort
ruby
Last synced: about 1 year ago
JSON representation
The project built a method #bubble_sort that takes an array of numbers and returns a sorted array, as well as a method #bubble_sort_by that takes an array of strings and sorts it by string length.
- Host: GitHub
- URL: https://github.com/abongsjoel/ruby-bubble-sort
- Owner: abongsjoel
- License: mit
- Created: 2020-12-01T21:16:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-01T23:25:54.000Z (about 5 years ago)
- Last Synced: 2025-03-25T10:37:32.423Z (about 1 year ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 34.2 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Ruby Bubble Sort
> In this project, I built a simple Bubble sort algorithm using Ruby


The project built a method #bubble_sort that takes an array of numbers and returns a sorted array, as well as a method #bubble_sort_by that takes an array of strings and a block and uses yield to read the block and return an array of strings sorted by the length of the strings.
## Built With
- Ruby
## Live Demo
[Live Demo](https://repl.it/@abongsjoel/RubyBubbleSort)
## Author
👤 **Chi A. Joel**
- GitHub: [@abongsjoel](https://github.com/abongsjoel)
- Twitter: [@thierryjoel10](https://twitter.com/ThierryJoel10)
- LinkedIn: [Chi Abongwa Joel](https://www.linkedin.com/in/chi-abongwa-joel-b4285a97/)
## Acknowledgments
- [Microverse](https://www.microverse.org/)
- [The Odin Project](https://www.theodinproject.com)
- [w3schools](https://www.w3schools.com)
## Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/abongsjoel/ruby-bubble-sort/issues/).
## Show your support
Give a ⭐️ if you like this project!
## License
This project is MIT licensed.