389. Find the Difference Poison 2023-07-04 Bit 1234567891011class Solution { public char findTheDifference(String s, String t) { int res = 0; for (int i = 0; i < s.length(); i++) { res ^= s.charAt(i); res ^= t.charAt(i); } res ^= t.charAt(t.length() - 1); return (char) res; }} References389. Find the Difference