题解 | #删除字符串中出现次数最少的字符#
删除字符串中出现次数最少的字符
https://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9
s=input() res = '' counts = [] for char in s: counts.append(s.count(char)) for char in s: if s.count(char) > min(counts): res += char print(res)