all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
let counting_sort_array arr lo hi =
|
||||
let count = Array.make (hi-lo+1) 0 in
|
||||
Array.iter (fun i -> count.(i-lo) <- count.(i-lo) + 1) arr;
|
||||
Array.concat (Array.to_list (Array.mapi (fun i x -> Array.make x (lo+i)) count))
|
||||
Loading…
Add table
Add a link
Reference in a new issue