JAVA Solution (100% faster)
\nclass Solution {\n    public String[] uncommonFromSentences(String A, String B) {\n        \n        String str = A+" "+B;\n        \n        String[] words =
```\nclass Solution {\n    public String[] uncommonFromSentences(String A, String B) {\n        \n        String str = A+" "+B;\n        \n        String[] words = str.split(" ");\n        \n        HashMap<String, Integer> hash = new HashMap<>();\n        \n        for(int i=0; i<words.length; i++){\n          if(!hash.containsKey(words[i]))\n                hash.put(words[i], 1);\n            else\n                hash.put(words[i], hash.get(words[i])+1);  \n        }\n        \n        List<String> result = new ArrayList<>();\n          \n        for(String key:hash.keySet())\n            if(hash.get(key) == 1)\n                result.add(key);\n        \n        return result.toArray(new String[result.size()]);\n    }\n}\n```
[]