Project

expertsort

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Expertsort (stylised EXPERTSORT) is a collection of EXPERT PROGRAMMER sorting algorithms.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
 Project Readme

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.