Designed of a BubbleSort Algorithm with Validation using Ruby, it sorts the entered array in alphabetical order.
Ruby
-
Install Ruby on your machine
-
Download and Unzip the folder containing this project, or clone it.
-
In the last line of the ruby file, insert the array of strings that you want to sort instead of puts check_validity(%w[cool perfect nice apple]). Insert the array of ints instead of puts check_validity_integer([2, 3, 5, 3, 7, 0, 45])
-
In the terminal, navigate to the folder containing the file and run "ruby index.rb"
Give a star if you like this project!
This project is MIT licensed.