forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
334 B
29 lines
334 B
3 years ago
|
# 桶排序 `不推荐`
|
||
|
|
||
|
* **介绍**
|
||
|
* 定义
|
||
|
* 桶排序是对计数排序的优化。
|
||
|
* 首先将元素分在不同的桶中,在对每个桶中的元素排序。
|
||
|
* 复杂度 O(n)
|
||
|
* 思路:
|
||
|
* 过程:
|
||
|
*
|
||
|
* 关键字:
|
||
|
*
|
||
|
* 存在问题
|
||
|
*
|
||
|
* **原理**
|
||
|
|
||
|
>
|
||
|
|
||
|
* **代码**
|
||
|
|
||
|
```java
|
||
|
|
||
|
```
|
||
|
|
||
|
```go
|
||
|
|
||
|
```
|
||
|
|