题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
https://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
while True:
try:
s = input()
dic = {}
res = ""
for n in s:
dic[n] = dic.setdefault(n, 0) + 1
Min = min(dic.values())
for n in s:
if dic[n] != Min:
res += n
print(res)
except:
break
