Python 1-line 32ms


  • 0
    S
    def findTheDifference(self, s, t):
        return chr(abs(reduce(lambda x, y: x + y, map(ord, s), 0) - reduce(lambda x, y: x + y, map(ord, t), 0)))
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.