Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
|
|
@ -0,0 +1,7 @@
|
|||
fun bubble_select [] = []
|
||||
| bubble_select [a] = [a]
|
||||
| bubble_select (a::b::xs) =
|
||||
if b < a then b::(bubble_select(a::xs)) else a::(bubble_select(b::xs))
|
||||
|
||||
fun bubblesort [] = []
|
||||
| bubblesort (x::xs) =bubble_select (x::(bubblesort xs))
|
||||
Loading…
Add table
Add a link
Reference in a new issue