Simple Python SOlution


  • 0
    M
    class Solution(object):
        def findTheDifference(self, s,):
            for i in t:
                if not i in s or t.count(i) != s.count(i):
                    return i
    

Log in to reply
 

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