Sorting algorithms/Quicksort: Difference between revisions
Content added Content deleted
(added ocaml) |
|||
Line 274: | Line 274: | ||
| x::xs -> |
| x::xs -> |
||
let ys, zs = List.partition (gt x) xs in |
let ys, zs = List.partition (gt x) xs in |
||
quicksort gt ys @ x :: quicksort gt zs |
|||
let _ = |
let _ = |