8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab96064 commit ac9367cCopy full SHA for ac9367c
src/Medium/SortList.hs
@@ -1,4 +1,6 @@
1
module SortList ( sortList ) where
2
+
3
+-- Quick Sort
4
5
sortList :: (Ord a) => [a] -> [a]
6
sortList (x:xs) = sortList [y | y <- xs, y <= x] ++ [x] ++ sortList [y | y <- xs, y > x]
0 commit comments