python解法
字符流中第一个不重复的字符
http://www.nowcoder.com/questionTerminal/00de97733b8e4f97a3fb5c680ee10720
class Solution: # 返回对应char def __init__(self): self.s='' def FirstAppearingOnce(self): # write code here res=[] for i in self.s: if i in res: res.remove(i) else: res.append(i) return res[0] if res else "#" def Insert(self, char): # write code here self.s+=char