public class Solution { public char FindTheDifference(string s, string t) { char temp=' '; for(int i=0;i<s.Length;i++) { temp=(char)(temp^s[i]); } for(int i=0;i<t.Length;i++) { temp=(char)(temp^t[i]); } temp+=' '; return temp; } } |
|
来自: 雪柳花明 > 《LeetCode》