This commit is contained in:
krahets
2023-03-20 03:13:55 +08:00
parent 2ac1840c60
commit a9ff8a9e91
3 changed files with 14 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ comments: true
```java title="counting_sort.java"
/* 计数排序 */
// 实现无法用于排序对象
// 简单实现无法用于排序对象
void countingSortNaive(int[] nums) {
// 1. 统计数组最大元素 m
int m = 0;
@@ -153,7 +153,7 @@ $$
```java title="counting_sort.java"
/* 计数排序 */
// 实现可排序对象,并且是稳定排序
// 完整实现可排序对象,并且是稳定排序
void countingSort(int[] nums) {
// 1. 统计数组最大元素 m
int m = 0;