3 ms·
No. You can find every order statistic in O(n) [1]. And even if someone handed you the pivot, you still had to prove that this is right. [1] http://en.wikipe
by eru 17y ago
No. You can find every order statistic in O(n) [1]. And even if someone handed you the pivot, you still had to prove that this is right.
[1] http://en.wikipedia.org/wiki/Selection_algorithm http://en.wikipedia.org/wiki/Selection_algorithm