sort

package module
v0.0.0-...-14651c3 Latest Latest
Warning

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

Go to latest
Published: May 28, 2023 License: MIT Imports: 4 Imported by: 0

README

A library implimenting common sorting methods for integers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Merge

func Merge(s []int, mid int)

Merge function merges two slices into sorted order.

func MergeSort

func MergeSort(s []int)

MergeSort is a simple merge sort implimentation for integers. It sorts an slice of type []int, the first parameter.

func QuickSort

func QuickSort(s []int, cmp func(i, j int) int)

QuickSort is a very simple quick sort implimentation for integers. It sorts an slice of type []int, the first parameter, with the second one which is a compare function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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