char findTheDifference(char* s, char* t) {
int temps[26]={0};
int tempt[26]={0};
int n1=strlen(s),n2=strlen(t);
for(int i=0;i<n1;i++) temps[s[i]-'a']++;
for(int i=0;i<n2;i++) tempt[t[i]-'a']++;
int i=0;
for(;i<26;i++){
if(temps[i]!=tempt[i]) break;
}
return 'a'+i;
}
标签:temps,26,int,不同,char,389,strlen
From: https://www.cnblogs.com/llllmz/p/18076283