Skip to content

edemagbenyo/bubble-sort-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bubble Sorting Algorithm

Bubble Sort is the algorithm to sort elements in an array by ascending or descending. The algorithm will partition the array into a sorted partition and unsorted partition.

Implementation

The algorithm is very simple, we repeatedly swap the adjacent elements if they are in the wrong order.

Image

63668342-6c5ff680-c809-11e9-80f6-fa7e80959dec

Pre-requisites

  1. Ruby installed version
  2. Code Editor of your taste (VS Code recommended)
  3. Rubocop Gem installed [gem install rubocop]

How to contribute and partipate

Fork this repo and submit a PR for review and potential merge to main branch

Engineers

  1. Edem Agbenyo
  2. John Kilonzi

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages