Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
(define select-r
|
||||
Small [] Output -> [Small | (selection-sort Output)]
|
||||
Small [X|Xs] Output -> (select-r X Xs [Small|Output]) where (< X Small)
|
||||
Small [X|Xs] Output -> (select-r Small Xs [X|Output]))
|
||||
|
||||
(define selection-sort
|
||||
[] -> []
|
||||
[First|Lst] -> (select-r First Lst []))
|
||||
|
||||
(selection-sort [8 7 4 3 2 0 9 1 5 6])
|
||||
Loading…
Add table
Add a link
Reference in a new issue