Removing duplicate chars[Microsoft]

Problem: Given a string, Remove all the duplicate chars, string may include spaces.

Solution Hints:solN; ASCII char valaus range from -128 to 127.

Link

The following solution did not get AC from OJ. My guess is, there may be a problem with that OJ.

 

 

Comments are closed.