思辨专题

力扣映射思辨题:赎金信

思路很简单:查到就改 bool canConstruct(char* ransomNote, char* magazine) {for(long x=0;x<strlen(ransomNote);x++){for(long y=0;y<strlen(magazine);y++){if(magazine[y]==ransomNote[x]){ransomNote[x]='1';magazine