You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>A <strong>sentence</strong> is a string of single-space separated words where each word consists only of lowercase letters.</p>
2
+
3
+
<p>A word is <strong>uncommon</strong> if it appears exactly once in one of the sentences, and <strong>does not appear</strong> in the other sentence.</p>
4
+
5
+
<p>Given two <strong>sentences</strong> <code>s1</code> and <code>s2</code>, return <em>a list of all the <strong>uncommon words</strong></em>. You may return the answer in <strong>any order</strong>.</p>
6
+
7
+
<p> </p>
8
+
<p><strongclass="example">Example 1:</strong></p>
9
+
10
+
<divclass="example-block">
11
+
<p><strong>Input:</strong> <spanclass="example-io">s1 = "this apple is sweet", s2 = "this apple is sour"</span></p>
<p>The word <code>"sweet"</code> appears only in <code>s1</code>, while the word <code>"sour"</code> appears only in <code>s2</code>.</p>
0 commit comments