Advanced Building Blocks - Bubble Sort

This is a Ruby project to demonstrate Bubble Sort using the following methods:

bubble_sort

This method takes an array of integers and returns a sorted array. It uses bubble sort methodology.

bubble_sort_by

This method sorts an array by accepting a block. Yield command has been used inside the method definition to achieve this.

Built With

  • Ruby

Authors

👤 Ricardo

👤 Paul Omondi