sort_algos

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeapSort

func HeapSort(arr []int) []int

func InsertionSort

func InsertionSort(arr []int)

func MergeSort

func MergeSort(arr []int) []int

func QuickSort

func QuickSort(data Object, a, b, maxDepth int)

Quick Sort

func QuickSort2

func QuickSort2(array []int)

func SelectionSort

func SelectionSort(arr []int)

func ShellSort

func ShellSort(arr []int)

shell sort

Types

type Ints

type Ints []int

func (Ints) Length

func (p Ints) Length() int

func (Ints) Less

func (p Ints) Less(i, j int) bool

func (Ints) Swap

func (p Ints) Swap(i, j int)

type Object

type Object interface {
	Length() int
	Less(i, j int) bool
	Swap(i, j int)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL