This is the first project that welcomes us into the Ruby Section of the Microverse Remote Software Development Curriculum. It is the interesting topic because me and my partner made a bubble_sort function instead of using the predefined function.
These instructions will get you a copy of the project up and running on your local machine.
From your command line, first clone the project:
# Clone this repository
$ git clone https://github.com/ignatius22/bubble_sort.git
# Go into the repository
$ cd bubble_sort
- Ruby
- irb
-
In an unsorted array of 4 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.
-
Repeat steps 1โ3 until no more swaps are required.
๐ค Dipesh Kumar
๐ค Ignatius Sani
For the: Github-link
Give a โญ๏ธ if you like this project!