Skip to main content
Commonmark migration
Source Link

#Java, 78 bytes

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[].

#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[].

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[].

Source Link
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[].