项目作者: Fig77

项目描述 :
Bubble Sort - Ruby
高级语言: Ruby
项目地址: git://github.com/Fig77/bubble_sort_microverse.git
创建时间: 2019-12-04T18:43:12Z
项目社区:https://github.com/Fig77/bubble_sort_microverse

开源协议:

下载


ADVANCED BUILDING BLOCKS: Bubble Sort

The project consists of implementing a simple bubble sort algorithm in Ruby.

Project Description

https://www.theodinproject.com/courses/ruby-programming/lessons/advanced-building-blocks

Prerequisites

  1. Clone the project- git clone https://github.com/Fig77/bubble_sort_microverse.git
  2. Cd bubble_sort_microverse

Run the server

  1. Next is to start the project with the command ruby buble_sort.rb
    The page should be running on your terminal

Built With

  1. Ruby

Testing

Add the following at the end of its respective function

  1. print bubble_sort([4,3,78,2,0,2])
  1. print (bubble_sort_by(%w[hi hello hey]) do |left, right|
  2. left.length - right.length
  3. end )

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Authors

  1. Stephen Gumba
  2. Facundo Iglesias

Acknowledgments

  • Microverse.