File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
solution/0800-0899/0884.Uncommon Words from Two Sentences Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 35
35
36
36
<p ><strong >提示:</strong ></p >
37
37
38
- <ol >
39
- <li><code>0 <= A.length <= 200</code></li>
40
- <li><code>0 <= B.length <= 200</code></li>
41
- <li><code>A</code> 和 <code>B</code> 都只包含空格和小写字母。</li>
42
- </ol >
38
+ <ul >
39
+ <li><code>1 <= s1.length, s2.length <= 200</code></li>
40
+ <li><code>s1</code> 和 <code>s2</code> 由小写英文字母和空格组成</li>
41
+ <li><code>s1</code> 和 <code>s2</code> 都不含前导或尾随空格</li>
42
+ <li><code>s1</code> 和 <code>s2</code> 中的所有单词间均由单个空格分隔</li>
43
+ </ul >
43
44
44
45
## 解法
45
46
Original file line number Diff line number Diff line change 46
46
47
47
<p ><strong >Note:</strong ></p >
48
48
49
- <ol >
50
- <li><code>0 <= A.length <= 200</code></li>
51
- <li><code>0 <= B.length <= 200</code></li>
52
- <li><code>A</code> and <code>B</code> both contain only spaces and lowercase letters.</li>
53
- </ol >
49
+ <ul >
50
+ <li><code>1 <= s1.length, s2.length <= 200</code></li>
51
+ <li><code>s1</code> and <code>s2</code> consist of lowercase English letters and spaces.</li>
52
+ <li><code>s1</code> and <code>s2</code> do not have leading or trailing spaces.</li>
53
+ <li>All the words in <code>s1</code> and <code>s2</code> are separated by a single space.</li>
54
+ </ul >
54
55
55
56
</div >
56
57
You can’t perform that action at this time.
0 commit comments