Skip to content

Commit

Permalink
Quicksort in Haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
firephil committed Mar 14, 2021
1 parent be6415e commit 2bd8b7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Quicksort.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Data.List (partition)

# on line implementation

qsort1 [] = []
qsort1 (x:xs) = qsort1 [y | y <- xs, y < x] ++ [x] ++ qsort1 [y | y <- xs, y >= x]

Expand Down

0 comments on commit 2bd8b7d

Please sign in to comment.