package
Version:
v0.0.0-...-a046bda
Opens a new window with list of versions in this module.
Published: Aug 25, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
基数排序
基本思想:
1.找出数组中最大的数字的位数 maxDigitLength
2.获取数组中每个数字的基数
3.遍历 maxDigitLength 轮数组,每轮按照基数对其进行排序
注意,此排序支持正负整数排序,不支持小数排序,若需要支持小数,需要先处理小数为整数进行排序,最后恢复为小数
Source Files
¶
Click to show internal directories.
Click to hide internal directories.