python solution 35ms


  • 0
    L
        if set(t) != set(s):
            return str((set(t) - set(s)).pop())
        
        for i in t:
            if 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.