...

/

Remove Duplicates from a String

Remove Duplicates from a String

Remove duplicate characters from a string, which is passed by reference.

Statement

Given a string that contains duplicate occurrences of characters, remove the duplicate occurrences such that every character in the string appears only once.

Access this course and 1400+ top-rated courses and projects.