网站首页
编程语言
数据库
系统相关
其他分享
编程问答
canConstruct
2024-09-15
26.赎金信
classSolution{publicbooleancanConstruct(StringransomNote,Stringmagazine){if(ransomNote.length()>magazine.length()){returnfalse;}HashMap<Character,Integer>hm=newHashMap<>();for