Skip to content

jpdf00/bubble_sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bubble Sort

This is a method that allows to sort any array. It has two versions:

  1. Sorts the array in ascending order.
  2. Sorts the array using a block provided when the method is called.

Built With

  • Ruby
  • Tested on irb.

To get a local copy up and running follow these simple example steps.

Prerequisites

Ruby 2.7.0

Setup

Install ruby following this guide: Install

Install

Clone the repository from Github: Github

Usage

  • Open your terminal and cd to the directory you cloned.
  • Type ruby bubble_sort.rb for the first version and ruby bubble_sort_by.rb for the second version.
  • Add the method to your personal library of methods and try it with any array of your choice.

Authors

👤 João Paulo Dias França

👤 Alicia Paz Rojas

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • The Odin Project

📝 License

This project is MIT licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages