2023-09-25 05:28:38 +0000 UTC

Find the Difference

Code

class Solution:
    def findTheDifference(self, s: str, t: str) -> str:
        return chr(reduce(operator.xor, (ord(char) for char in chain(s, t))))