Skip to content

gyng/expertsort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EXPERTSORT

Build Status

Expertsort (stylised EXPERTSORT) is a collection of EXPERT PROGRAMMER sorting algorithms.

Need help with sorting homework? EXPERTSORT is here to help.

Installation

Add this line to your application's Gemfile:

gem 'expertsort'

And then execute:

$ bundle

Or install it yourself as:

$ gem install expertsort

Usage

require 'expertsort'

[5, 4, 3, 1, 2].bogosort
=> [1, 2, 3, 4, 5]

Sorts

Bogosort

  • bogosort, bogosort!

Bogobogosort

  • bogobogosort, bogobogosort!

Stoogesort

  • stoogesort, stoogesort!

Slowestsort

  • slowestsort, slowestsort!

Sleepsort

  • sleepsort, sleepsort!

Sleepsort raises a RangeError if the array contains a negative element.

Testing

There is a rspec for EXPERTSORT at spec/expertsort/expertsort_spec.rb.

About

A collection of EXPERT PROGRAMMER sorting algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages