sortlearning

package module
v0.0.0-...-499c923 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 2 Imported by: 0

README

字节跳动-青训营-算法与数据结构代码附件

不要在生产环境使用本仓库,仅供参考

Benchmark

运行 benchmark(性能测试)

go test -bench=. -cpu=1 -timeout=1h

运行 benchmark(性能测试) 快速版本,可能出现数据不准确

go test -bench=. -cpu=1 -benchtime=1000x -timeout=1h

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeapSort

func HeapSort[T constraints.Ordered](v []T)

func InsertionSort

func InsertionSort[T constraints.Ordered](v []T)

func PDQsortV1

func PDQsortV1[T constraints.Ordered](v []T)

func QuickSort

func QuickSort[T constraints.Ordered](v []T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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