Duplicate Removal in String

How to remove duplicates in a string in O(n) time ?  (order of input must be preserved) 

Author: Mohit Gupta 4
Login to Answer
Sort By:
Oldest
|
Newest
|
Vote
|
My Answer