1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #1830 from SiQuan77/patch-1

希尔排序的空间复杂度有误
This commit is contained in:
Guide 2022-09-23 20:53:51 +08:00 committed by GitHub
commit 0ce0cb559a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,7 +259,7 @@ public static int[] shellSort(int[] arr) {
- **稳定性**:稳定
- **时间复杂度** 最佳O(nlogn) 最差O(n2) 平均O(nlogn)
- **空间复杂度** `O(n)`
- **空间复杂度** `O(1)`
## 归并排序 (Merge Sort)