Quickselect algorithm: Difference between revisions
m
→{{header|Haskell}}
m (→uses swap subroutine: added/changed comments and whitespace, used a template for the output section.) |
|||
Line 1,097:
main :: IO ()
main =
print $
let v = [9, 8, 7, 6, 5, 0, 1, 2, 3, 4]▼
{{out}}
<pre>[0,1,2,3,4,5,6,7,8,9]</pre>
|