Skip to content

Commit

Permalink
adding selection sort
Browse files Browse the repository at this point in the history
  • Loading branch information
sid137 committed Feb 12, 2012
1 parent f5f228c commit 1a1b500
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions insertion_sort.hs
Expand Up @@ -13,6 +13,8 @@ insertion_sort [x] = [x]
insertion_sort (x:xs) =
insert x (insertion_sort xs)



reverse_insert :: (Ord a) => a -> [a] -> [a]
reverse_insert x [] = [x]
reverse_insert x (y:ys)
Expand Down

0 comments on commit 1a1b500

Please sign in to comment.