• + 0 comments

    Here is my haskell solution.

    reduceStr = reverse . foldl (\acc e -> if e `elem` acc then acc else e : acc) []
    main = getLine >>= putStr . reduceStr