Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
let rec columns l =
|
||||
match List.filter ((<>) []) l with
|
||||
[] -> []
|
||||
| l -> List.map List.hd l :: columns (List.map List.tl l)
|
||||
|
||||
let replicate n x = Array.to_list (Array.make n x)
|
||||
|
||||
let bead_sort l =
|
||||
List.map List.length (columns (columns (List.map (fun e -> replicate e 1) l)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue