RosettaCodeData/Task/Quickselect-algorithm/00DESCRIPTION
2016-12-05 22:15:40 +01:00

5 lines
295 B
Text

Use the [[wp:Quickselect|quickselect algorithm]] on the vector
: [9, 8, 7, 6, 5, 0, 1, 2, 3, 4]
To show the first, second, third, ... up to the tenth largest member of the vector, in order, here on this page.
* Note: Quick''sort'' has a separate [[Sorting algorithms/Quicksort|task]]. <br><br>