selection

package
v0.0.0-...-10ffd4c Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MIT Imports: 0 Imported by: 0

README

选择排序

  1. 对n位的序列进行n-1次扫描。
  2. 在第i次扫描时,扫描后n-i个元素,找到其中最小的那个元素j,将i,j元素互换。

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(a []int)

Sort 选择排序实现的算法

Types

This section is empty.

Jump to

Keyboard shortcuts

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