You are viewing a single comment's thread. Return to all comments →
I found a nice Haskell solution.
import Data.List.Split(chunksOf) solve :: String->String solve s = chunksOf 2 s >>= reverse main :: IO () main = getContents >>= mapM_ putStrLn. (map solve) . tail . lines
Seems like cookies are disabled on this browser, please enable them to open this website
String-o-Permute
You are viewing a single comment's thread. Return to all comments →
I found a nice Haskell solution.