Skip to content

schbm/gort

Repository files navigation

gort

Slice sorting in golang.

TODO: Add proper benchmarking.

Can be used as a reference point. Currently the following algorithms are implemented:

  1. Insertion
  2. Selection
  3. Bubble
  4. Quick (& Quick Optimized see diagram)
  5. Shell

Functions use the following type constraint:

type Ordered interface {
	Integer | Float | ~string
}

The solutions provided are not garanteed to be the best implementation available!

alt text

Sources used:

  1. Toptal.com Sorting-Algorithms

About

go slice sorting

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published