This is the first project that welcomes us into the Ruby Section of the Microverse Remote Software Development Curriculum.
This is a quick extract that helps explains the underlying concepts of bubble sort
In an unsorted array of elements, start with the first two elements and sort them in ascending order. (Compare the element to check which one is greater).
- Compare the second and third element to check which one is greater, and sort them in ascending order.
- Compare the third and fourth element to check which one is greater, and sort them in ascending order.
- Compare the fourth and fifth element to check which one is greater, and sort them in ascending order.
- Repeat steps 1–5 until no more swaps are required.
Simple right? Below is a simple animated illustration:
- Ruby
To get a local copy up and running use this command git clone https://github.com/petumazo/Bubble-Sort.git
👤 David Alvarez
- GitHub: @petumazo
- Twitter: @petudeveloper
- LinkedIn: LinkedIn
👤 Daniel Samuel
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Project originally taken from The Odin Project
- Project inspired by Microverse Program
This project is MIT licensed.