What is the average case time complexity of quickselect?

Answer: c
Explanation: In quickselect, we don’t recur for both portions of the array. Only that portion is considered where the smallest element lies. So this causes the average time complexity to be O(n).
 

Tìm kiếm

Back
Top