package
Version:
v0.0.0-...-9b8d98b
Opens a new window with list of versions in this module.
Published: Oct 4, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func BinaryInsertionSort(arr []int)
BinaryInsertionSort 折半插入排序
func BubbleSort(arr []int)
BubbleSort 冒泡排序
func BubbleSortF(arr []int)
BubbleSortF flag 冒泡排序
改进优化BubbleSort
func InsertionSort(arr []int)
InsertionSort 插入排序
arr为待排序slice的地址
func MergeSort(arr []int)
MergeSort 归并排序
func QuickSort(arr []int)
QuickSort 快速排序
func RadixSort(arr []int)
RadixSort 基数排序
func SelectionSort(arr []int)
SelectionSort 选择排序
func ShellSort(arr []int)
ShellSort 希尔排序
gap 增量为3*gap+1
Source Files
¶
Click to show internal directories.
Click to hide internal directories.