# -*- coding:utf-8 -*-
class Solution:
# 返回对应char
def __init__(self):
self.c = ""
self.d = {}
def FirstAppearingOnce(self):
for s in self.c:
if self.c.count(s) == 1:
return s
return "#"
def Insert(self, char):
self.c = self.c + (char)