An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

![](https://img.shields.io/badge/Microverse-blueviolet)

# Ruby Bubble Sort

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

![screenshot](../features/screenshot1.png)
![screenshot](../features/screenshot2.png)

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.