You are viewing a single comment's thread. Return to all comments →
Simple solution in Haskell:
mingle :: [Char] -> [Char] -> [Char] mingle [] [] = [] mingle a b = (head a) : (head b) : mingle (tail a) (tail b) main :: IO () main = getLine >>= \p -> getLine >>= \q -> putStrLn $ mingle p q
Seems like cookies are disabled on this browser, please enable them to open this website
String Mingling
You are viewing a single comment's thread. Return to all comments →
Simple solution in Haskell: