Find smallest and largest element in an array in constant time complexity.
Answers
Answered by
0
Use order statistic algorithm to find the kth largest element. Please see the topic selection in worst-case linear time O(n)
Similar questions