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

3 lines
107 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
list:=T(10, 9, 8, 7, 6, 1, 2, 3, 4, 5);
foreach nth in (list.len()){ println(nth,": ",qselect(list,nth)) }