sort

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: GPL-3.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

type Finder interface {
	Less(p1, p2 int) bool
}

type Sorter

type Sorter interface {
	Finder
	Swap(p1, p2 int)
}

type TF

type TF struct {
	Finder
}

func (TF) BinSearch

func (f TF) BinSearch(min, max int, target *int)

func (TF) BinSearchNext

func (f TF) BinSearchNext(min, max int, target *int)

type TS

type TS struct {
	Sorter
}

func (TS) QuickSort

func (s TS) QuickSort(min, max int)

Jump to

Keyboard shortcuts

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