Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
|
|
@ -22,5 +22,5 @@ toList :: Ord a => Tree a -> [a]
|
|||
toList Nil = []
|
||||
toList (Node x l r) = x : toList (merge l r)
|
||||
|
||||
mergeSort :: Ord a => [a] -> [a]
|
||||
mergeSort = toList . fromList
|
||||
heapSort :: Ord a => [a] -> [a]
|
||||
heapSort = toList . fromList
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue