Skip to content

Commit

Permalink
Add Haskell code to Issue rathoresrikant#570
Browse files Browse the repository at this point in the history
This solves Issue rathoresrikant#570 in Haskell.
  • Loading branch information
koru1130 authored Oct 28, 2018
1 parent 2268063 commit 0924068
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 0924068

Please sign in to comment.