题解 | #删除字符串中出现次数最少的字符#

删除字符串中出现次数最少的字符

https://www.nowcoder.com/practice/05182d328eb848dda7fdd5e029a56da9

# 20240911
s = input()
d = {}
for i in s:
    if i not in d:
        d[i] = s.count(i)
#print(d)
m = min(d.values())
#print(m)
ss = ''
for i in s:
    if d[i] != m:
        ss += i
print(ss)   




全部评论

相关推荐

牛客48826091...:哥们胸肌挺好看
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务