You are viewing a single comment's thread. Return to all comments →
Elixir solution:
defmodule Solution do def dedupe(input) do String.codepoints(input) |> Enum.reduce("", fn x, acc -> if String.contains?(acc, x) do acc else acc <> x end end) end end input = IO.read(:stdio, :all) Solution.dedupe(input) |>IO.puts
Seems like cookies are disabled on this browser, please enable them to open this website
Remove Duplicates
You are viewing a single comment's thread. Return to all comments →
Elixir solution: