Haskell Implementation
suggest changequickSort :: Ord a => [a] -> [a]
quickSort [] = []
quickSort (x:xs) = quickSort [ y | y <- xs, y <= x ]
++ [x]
++ quickSort [ z | z <- xs, z > x ]
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents