我相信有一种方法可以在O(n)中找到长度为n的未排序数组中的第k个最大元素.或许它是"预期的"O(n)或其他东西.我们应该怎么做?
algorithm performance big-o
algorithm ×1
big-o ×1
performance ×1