RosettaCodeData/Task/Quickselect-algorithm/Zkl/quickselect-algorithm-2.zkl

3 lines
107 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
list:=T(10, 9, 8, 7, 6, 1, 2, 3, 4, 5);
foreach nth in (list.len()){ println(nth,": ",qselect(list,nth)) }