1
from collections import Counter
2

3

4
class Solution:
5
def uncommonFromSentences(self, s1: str, s2: str) -> List[str]:
6
x = dict(Counter(s1.split() + s2.split()))
7
ans = []
8
for key in x:
9
if x[key] == 1:
10
ans.append(key)
11

12
return ans

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0