class Solution {
public:
char findTheDifference(string s, string t) {
char sum = 0;
for (char c: s) {
sum^=c;
}
for (char c: t) {
sum^=c;
}
return sum;
}
};
Find the Difference
Copyright © 2017 Powered by LZH, Theme used GitHub CSS.