You are viewing a single comment's thread. Return to all comments →
Haskell solution using recursion:
stringOPermute "" = "" stringOPermute (x:y:xs) = y : x : stringOPermute xs main = interact $ unlines . map stringOPermute . tail . words
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 →
Haskell solution using recursion: