Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions solution/2700-2799/2788.Split Strings by Separator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<p><strong>示例 2:</strong></p>

<pre>
<strong>输入:</strong>words = ["easy","problem"], separator = "&#36;"
<strong>输入:</strong>words = ["&#36;easy&#36;","&#36;problem&#36;"], separator = "&#36;"
<strong>输出:</strong>["easy","problem"]
<strong>解释:</strong>在本示例中,我们进行下述拆分:

Expand All @@ -60,8 +60,8 @@
<ul>
<li><code>1 &lt;= words.length &lt;= 100</code></li>
<li><code>1 &lt;= words[i].length &lt;= 20</code></li>
<li><code>words[i]</code> 中的字符要么是小写英文字母,要么就是字符串 <code>".,|$#@"</code> 中的字符(不包括引号)</li>
<li><code>separator</code> 是字符串 <code>".,|$#@"</code> 中的某个字符(不包括引号)</li>
<li><code>words[i]</code> 中的字符要么是小写英文字母,要么就是字符串 <code>".,|&#36;#@"</code> 中的字符(不包括引号)</li>
<li><code>separator</code> 是字符串 <code>".,|&#36;#@"</code> 中的某个字符(不包括引号)</li>
</ul>

## 解法
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Hence, the resulting array is [&quot;one&quot;,&quot;two&quot;,&quot;three&quot;
<p><strong class="example">Example 2:</strong></p>

<pre>
<strong>Input:</strong> words = [&quot;$easy$&quot;,&quot;$problem$&quot;], separator = &quot;&#36;&quot;
<strong>Input:</strong> words = [&quot;&#36;easy&#36;&quot;,&quot;&#36;problem&#36;&quot;], separator = &quot;&#36;&quot;
<strong>Output:</strong> [&quot;easy&quot;,&quot;problem&quot;]
<strong>Explanation:</strong> In this example we split as follows:

Expand All @@ -56,8 +56,8 @@ Hence, the resulting array is [&quot;easy&quot;,&quot;problem&quot;].
<ul>
<li><code>1 &lt;= words.length &lt;= 100</code></li>
<li><code>1 &lt;= words[i].length &lt;= 20</code></li>
<li>characters in <code>words[i]</code> are either lowercase English letters or characters from the string <code>&quot;.,|$#@&quot;</code> (excluding the quotes)</li>
<li><code>separator</code> is a character from the string <code>&quot;.,|$#@&quot;</code> (excluding the quotes)</li>
<li>characters in <code>words[i]</code> are either lowercase English letters or characters from the string <code>&quot;.,|&#36;#@&quot;</code> (excluding the quotes)</li>
<li><code>separator</code> is a character from the string <code>&quot;.,|&#36;#@&quot;</code> (excluding the quotes)</li>
</ul>

## Solutions
Expand Down