2023-09-25 05:26:39 +0000 UTC
Find the Difference
Categories:
Links
Code
class Solution:
def findTheDifference(self, s: str, t: str) -> str:
count = Counter(s)
for char in t:
count[char] -= 1
if count[char] == -1:
return char