The bubble sort algorithm for sorting items in an array according to a given criterion. Built in the Ruby programming language.
By the algorithm's operation each element is compared to the one next to it and they are swapped if the one on the left is larger than the one on the right. This continues until the array is eventually sorted in it's entirety.
- Ruby
- Install the ruby programming language.
To get a local copy up and running follow these simple example steps:
-
Clone this repo on your local machine by running
git clone git@github.com:German-Cobian/Bubble-Sort.git
-
cd
into theBubble-Sort.git
folder you just cloned -
Run
ruby bubble_sort.rb
👤 German Cobian
- GitHub: @German-Cobian
- Twitter: @GermanCobian1
- LinkedIn: @german-cobian
👤 Mih Julius Ndim
- GitHub: @mihdim2020
- Twitter: @mihndim
- LinkedIn: @mih-julius
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
- Guidelines for project supplied by The Odin Project
This project is MIT licensed.