by DanielBMarkham · 15y ago · 0 comments
And btw, here's the answer in F#:
let rec qsort = function
| [] -> []
| x::xs -> let smaller,larger = List.partition (fun y -> y<=x) xs
qsort smaller @ [x] @ qsort largerFor example, is a quicksort 'in-place' if your memory gets swapped to disk?