InterviewSolution
Saved Bookmarks
| 1. |
What will be the output if quickselect algorithm is applied to the array arr={1,5,4,3,7} with k given as 4?(a) 1(b) 3(c) 4(d) 5I had been asked this question in an international level competition.This intriguing question comes from Miscellaneous in section Miscellaneous of Data Structures & Algorithms II |
|
Answer» Correct choice is (d) 5 |
|