mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
<p><strong>Note</strong> that the same word in the dictionary may be reused multiple times in the segmentation.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "catsanddog", wordDict = ["cat","cats","and","sand","dog"]
|
||||
<strong>Output:</strong> ["cats and dog","cat sand dog"]
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "pineapplepenapple", wordDict = ["apple","pen","applepen","pine","pineapple"]
|
||||
@@ -18,7 +18,7 @@
|
||||
<strong>Explanation:</strong> Note that you are allowed to reuse a dictionary word.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "catsandog", wordDict = ["cats","dog","sand","and","cat"]
|
||||
@@ -34,4 +34,5 @@
|
||||
<li><code>1 <= wordDict[i].length <= 10</code></li>
|
||||
<li><code>s</code> and <code>wordDict[i]</code> consist of only lowercase English letters.</li>
|
||||
<li>All the strings of <code>wordDict</code> are <strong>unique</strong>.</li>
|
||||
<li>Input is generated in a way that the length of the answer doesn't exceed 10<sup>5</sup>.</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user