1.11 桶排序 #111
1.11 桶排序
#111
Replies: 1 comment
-
博主我看你这儿的实现是通过定义桶容量bucket_size来处理得到桶数量bucket_count。那如果定义桶的区间范围来得到桶数量可以吗?比如桶数量 = 向上取整(最大值 - 最小值 / 区间范围),因为一般来说数据不一定是均匀的,很可能会存在某个区间数据元素较多的情况,可能这个桶还得进行容量扩容。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1.11 桶排序
https://algo.itcharge.cn/01_array/01_11_array_bucket_sort/
Beta Was this translation helpful? Give feedback.
All reactions