题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
https://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
from collections import defaultdict
line = input()
d = defaultdict(int)
for ch in line:
d[ch] += 1
# 出现次数最少
min_time = min(d.values())
for ch in line:
if d[ch] != min_time:
print(ch, end=''
