A sentence is a string of single space separated words where each word consists only of lowercase English letters.
A word is considered uncommon if it appears exactly once in one of the sentences and does not appear in the other sentence.
Given two sentences s1 and s2, return a list of all the uncommon words. The answer may be returned in any order.
Constraints:
s1.length, s2.length
s1 and s2 consist of lowercase English letters and spaces.
s1 and s2 do not have leading or trailing spaces.
All the words in s1 and s2 are separated by a single space.
A sentence is a string of single space separated words where each word consists only of lowercase English letters.
A word is considered uncommon if it appears exactly once in one of the sentences and does not appear in the other sentence.
Given two sentences s1 and s2, return a list of all the uncommon words. The answer may be returned in any order.
Constraints:
s1.length, s2.length
s1 and s2 consist of lowercase English letters and spaces.
s1 and s2 do not have leading or trailing spaces.
All the words in s1 and s2 are separated by a single space.