algorithms

package
v0.0.0-...-6c0d317 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuickSort

func QuickSort[T algorithms.Ordered](values []T)

快排在partition时,选择pivot有多种选择:最右边的,随机一个,受数据本身的有序性影响,最好时是n*log(n)

Types

type SortTestCase

type SortTestCase struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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