计数排序是特殊的桶排序, 每个桶的长度为 1. 所以辅助数组的长度为 (max-min)/1+1(max 和 min 为待排序序列的最大值和最小值)
来源: http://www.bubuko.com/infodetail-2982619.html