|Remove duplicate characters from a string....|General Coding Problems

fn remove_duplicates(s: &str) -> String

Medium

Remove duplicate characters from a string.

fn remove_duplicates(s: &str) -> String

Asked in

tcs

Examples

Example 1:
Input: hello
Output: helo
Example 2:
Input: aabbcc
Output: abc
Submit Result

Click Run to test sample cases, or Submit to evaluate all cases