Polish the content.

This commit is contained in:
krahets
2023-08-21 03:57:09 +08:00
parent f5dda8d99a
commit 1aff6d6cc2
19 changed files with 44 additions and 38 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
## 方法一:遍历选择
我们可以进行 $k$ 轮遍历,分别在每轮中提取第 $1$ , $2$ , $\cdots$ , $k$ 大的元素,时间复杂度为 $O(nk)$ 。
我们可以进行 $k$ 轮遍历,分别在每轮中提取第 $1$ , $2$ , $\dots$ , $k$ 大的元素,时间复杂度为 $O(nk)$ 。
该方法只适用于 $k \ll n$ 的情况,因为当 $k$ 与 $n$ 比较接近时,其时间复杂度趋向于 $O(n^2)$ ,非常耗时。