Python One-liner


  • 0
    M
    def findTheDifference(self, s, t):
        from collections import Counter
        return (Counter(t) - Counter(s)).keys()[0]
    

Log in to reply
 

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