2023-09-25 08:28:38 +0300 MSK

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))))