Skip to content

Commit

Permalink
Merge pull request #619 from koru1130/patch-1
Browse files Browse the repository at this point in the history
Add Haskell code to Issue #570
  • Loading branch information
Srikant Singh authored Oct 31, 2018
2 parents 4b85850 + 0924068 commit 6c4c168
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Algorithms/Array/moveZero.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
moveZero :: [Int] -> [Int]
moveZero arr = filter (/= 0) arr ++ filter (== 0) arr

main = print $ moveZero [1,3,0,6,0,3,0,0]

0 comments on commit 6c4c168

Please sign in to comment.