/bubble_sort_ruby

An implementation of a classic Sorting Algorithm.

Primary LanguageRuby

Bubble Sort Algorithm

Project to create Bubble Sort Algorithm using Ruby Language.

screenshot


Algorithm based on classic definition
It can be see on Paper

Content

Requirements

    Features

  • Implement using the classic definition of this algorithm.
  • Turn it into a method called bubble_sort.
  • Create bubble_sort_by that accepts a block as criterion.

    Enchant Performance

  • Remove (n-1) iteraction after each lap.
  • Make a trigger to stop if array is already sorted.

Built With

  • Ruby Language
  • Rubocop (Linter) with Stickler (CI Tool)
  • Git, Github and VScode

Live Demo

Run on Repl.it

Quick Start

To get a local copy use:

git clone git@github.com:SevlaMare/bubble_sort_ruby.git

Dependencies

Ruby 2.5.5

Contributing

Contributions, issues and feature requests are welcome!

You can do it on issues page.

Acknowledgments

A special thanks for the code reviewers.

Author

👤 Thiago Miranda

License

Creative Commons