You are viewing a single comment's thread. Return to all comments →
Here is my haskell solution.
reduceStr = reverse . foldl (\acc e -> if e `elem` acc then acc else e : acc) [] main = getLine >>= putStr . reduceStr
Seems like cookies are disabled on this browser, please enable them to open this website
String Reductions
You are viewing a single comment's thread. Return to all comments →
Here is my haskell solution.