题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
http://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
while True:
try:
str_ = input()
dict_ = {}
res = ''
for s in str_:
if s not in dict_.keys():
dict_[s] = 1
else:
dict_[s] += 1
min_ = min(dict_.values())
for s in str_:
if dict_[s] != min_:
res += s
print(res)
except:
break