mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-13 09:25:15 +08:00
update
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
<p>给你一个字符串数组 <code>words</code> ,数组中的每个字符串都可以看作是一个单词。请你按 <strong>任意</strong> 顺序返回 <code>words</code> 中是其他单词的子字符串的所有单词。</p>
|
||||
|
||||
<p>如果你可以删除 <code>words[j]</code> 最左侧和/或最右侧的若干字符得到 <code>words[i]</code> ,那么字符串 <code>words[i]</code> 就是 <code>words[j]</code> 的一个子字符串。</p>
|
||||
<p>给你一个字符串数组 <code>words</code> ,数组中的每个字符串都可以看作是一个单词。请你按 <strong>任意</strong> 顺序返回 <code>words</code> 中是其他单词的 <span data-keyword="substring-nonempty">子字符串</span> 的所有单词。</p>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
<p><strong class="example">示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>words = ["mass","as","hero","superhero"]
|
||||
@@ -13,7 +11,7 @@
|
||||
["hero","as"] 也是有效的答案。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
<p><strong class="example">示例 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>words = ["leetcode","et","code"]
|
||||
@@ -21,7 +19,7 @@
|
||||
<strong>解释:</strong>"et" 和 "code" 都是 "leetcode" 的子字符串。
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 3:</strong></p>
|
||||
<p><strong class="example">示例 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>words = ["blue","green","bu"]
|
||||
@@ -36,5 +34,5 @@
|
||||
<li><code>1 <= words.length <= 100</code></li>
|
||||
<li><code>1 <= words[i].length <= 30</code></li>
|
||||
<li><code>words[i]</code> 仅包含小写英文字母。</li>
|
||||
<li>题目数据 <strong>保证</strong> 每个 <code>words[i]</code> 都是独一无二的。</li>
|
||||
<li>题目数据 <strong>保证</strong> <code>words</code> 的每个字符串都是独一无二的。</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user