Code a function that removes duplicate characters from a string.
Code input/output:
String: sstuuddents
After removing Duplicate chars: studen
String: mississippi
After removing Duplicate chars: misp
Code input/output:
String: sstuuddents
After removing Duplicate chars: studen
String: mississippi
After removing Duplicate chars: misp
No comments:
Post a Comment