You are viewing a single comment's thread. Return to all comments →
Haskell implementation using a fold
solve :: [Int] -> Int solve = foldl1 (\m n -> m * n `mod` 1234567)
Seems like cookies are disabled on this browser, please enable them to open this website
Connecting Towns
You are viewing a single comment's thread. Return to all comments →
Haskell implementation using a fold