Skip to content

Commit 9408ee1

Browse files
committed
Update 10-classical-sorting-algorithms.md
1 parent c0765af commit 9408ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/cs-basics/algorithms/10-classical-sorting-algorithms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ tag:
2727
上图存在错误:
2828

2929
1. 插入排序的最好时间复杂度为 O(n) 而不是 O(n^2) 。
30-
2.
30+
2. 希尔排序的平均时间复杂度为 O(nlogn)
3131

3232
**图片名词解释:**
3333

@@ -263,7 +263,7 @@ public static int[] shellSort(int[] arr) {
263263
### 算法分析
264264

265265
- **稳定性**:不稳定
266-
- **时间复杂度**:最佳:O(nlogn), 最差:O(n2) 平均:O(nlogn)
266+
- **时间复杂度**:最佳:O(nlogn), 最差:O(n^2) 平均:O(nlogn)
267267
- **空间复杂度**`O(1)`
268268

269269
## 归并排序 (Merge Sort)

0 commit comments

Comments
 (0)