Given a string s, remove all duplicate characters so that each character appears only once. Preserve the order of first occurrence of each character.
For example, "abracadabra" becomes "abrcd" because those are the characters in the order they first appear.
s = "abracadabra""abrcd"s = "hello""helo"s = "aabbcc""abc"0 <= s.length <= 10^4s consists of printable ASCII charactersRun your code to see results
Use Cmd+Enter to run