Python Easy Solution || Hash Table
Complexity\n- Time complexity:\nO(n+m)\n\n- Space complexity:\nO(n+m)\n\n# Code\n\nclass Solution:\n    def uncommonFromSentences(self, s1: str, s2: str) -> Lis
# Complexity\n- Time complexity:\nO(n+m)\n\n- Space complexity:\nO(n+m)\n\n# Code\n```\nclass Solution:\n    def uncommonFromSentences(self, s1: str, s2: str) -> List[str]:\n        dic={}\n        res=[]\n        s1=s1.rsplit()\n        s2=s2.rsplit()\n        for i in s1+s2:\n            if i in dic:\n                dic[i]+=1\n            else:\n                dic[i]=1\n        \n        for i in dic:\n            if dic[i]==1:\n                res.append(i)\n        return res\n```
['Python3']