额外空间 O(logn)O(\log n)O(logn) 每次随机取一个值,递归两边 第 kkk 大,如果不需要有序,只问第 kkk 大是什么 O(n)O(n)O(n) 问前 kkk 大?O(n+klogk)O(n + k \log k)O(n+klogk)