Skip to main content
1 of 2
Geobits
  • 19.7k
  • 4
  • 56
  • 125

#Java, 78 bytes

String f(char[]s){String t="";for(char c:s)t+=t.contains(c+"")?"":c;return t;} 

A simple loop while checking the output for characters already present. Accepts input as a char[].

Geobits
  • 19.7k
  • 4
  • 56
  • 125