简单题
class Solution(object): def findTheDifference(self, s, t): """ :type s: str :type t: str :rtype: str """ for i in range(len(t)): if t.count(t[i])!=s.count(t[i]) or t[i] not in s: return t[i]
执行用时 :16 ms, 在所有 python 提交中击败了98.07%的用户
内存消耗 :11.8 MB, 在所有 python 提交中击败了25.81%的用户
——2019.10.25