https://leetcode.com/problems/find-the-difference/
http://www.cnblogs.com/qinduanyinghua/p/5827777.html
class Solution {
public:
char findTheDifference(string s, string t) {
int a[26] = {0}, lens = s.length(), lent = t.length(), i;
for(i = 0; i < lens; i++)
a[s[i] - 'a']++;
for(i = 0; i < lent; i++)
if(a[t[i] - 'a'] <= 0)
break;
else
a[t[i] - 'a']--;
return t[i];
}
};