Python 1-line Solution


  • 0
    Z

    return chr(sum([ord(i) for i in t])-sum([ord(i) for i in s]))

    convert to ascii and subtract


Log in to reply
 

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