Skip to content

A generic Quicksort algorithm for use with anything (not just numbers)

License

Notifications You must be signed in to change notification settings

lfourky/go-quicksort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

go-quicksort

A generic Quicksort algorithm for sorting just about... anything that's sortable (not just numbers).

Implementation

To use this sorting function, sort.QuickSort, you need to implement 3 short methods for the stuff you want to sort: LessEqual, Swap & Len, where LessEqual is the method in which you decide the sorting key and, with that, the way you'll sort your stuff.

Additional parameter to the function call let's you decide whether you'll sort in ascending or descending order.

About

A generic Quicksort algorithm for use with anything (not just numbers)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages