更正复杂度分析中的笔误

This commit is contained in:
Yufan Sheng
2024-10-04 21:05:14 +10:00
parent 8217eb9e02
commit 07d219ecd1

View File

@@ -110,7 +110,7 @@ public:
```
* 时间复杂度O(nlog n),因为有一个快排
* 空间复杂度O(1),有一个快排,最差情况(倒序)时需要n次递归调用。因此确实需要O(n)的栈空间
* 空间复杂度O(n),有一个快排,最差情况(倒序)时需要n次递归调用。因此确实需要O(n)的栈空间
可以看出代码并不复杂。