可以使用这个进行map插入map.put(ch,map.getOrDefault(ch,0)+1); 将String换成Character可以节约空间,感谢,一起加油
点赞

相关推荐

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