Skip to content
/ bogo1 Public
forked from Theyflower/bogo1

An implementation of bogosort in python in a single line of code.

Notifications You must be signed in to change notification settings

dgaletic/bogo1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Bogo One

A one line implementation of bogosort in python.

How to use:

  • import bogo1 (until I make this a real package with setup.py it must be in the same directory as whatever module imports it)
  • bogo1.sort(list)
  • optionally bogo1.sort(list,sys.maxsize)
  • Default patience value is 1000, which works for smaller lists most of the time.

Known issuses:

  • It will return None if it fails to sort the data quick enough
  • It will continue sorting the data if it has already successfully sorted the data If you have a working fix for either of theses issues please make a pull request.

About

An implementation of bogosort in python in a single line of code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%