all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
let rec quicksort gt = function
|
||||
| [] -> []
|
||||
| x::xs ->
|
||||
let ys, zs = List.partition (gt x) xs in
|
||||
(quicksort gt ys) @ (x :: (quicksort gt zs))
|
||||
|
||||
let _ =
|
||||
quicksort (>) [4; 65; 2; -31; 0; 99; 83; 782; 1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue