gsort

package
v0.0.0-...-a046bda Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sort

func Sort(sli []int) []int

基数排序 基本思想: 1.找出数组中最大的数字的位数 maxDigitLength 2.获取数组中每个数字的基数 3.遍历 maxDigitLength 轮数组,每轮按照基数对其进行排序 注意,此排序支持正负整数排序,不支持小数排序,若需要支持小数,需要先处理小数为整数进行排序,最后恢复为小数

Types

This section is empty.

Jump to

Keyboard shortcuts

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