mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-12 10:51:42 +08:00
批量更新数据
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>s = "ilovecodingonleetcode", target = "code"
|
||||
<pre>
|
||||
<strong>输入:</strong>s = "ilovecodingonleetcode", target = "code"
|
||||
<strong>输出:</strong>2
|
||||
<strong>解释:</strong>
|
||||
对于 "code" 的第 1 个副本,选取下标为 4 、5 、6 和 7 的字符。
|
||||
@@ -17,7 +18,8 @@
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>s = "abcba", target = "abc"
|
||||
<pre>
|
||||
<strong>输入:</strong>s = "abcba", target = "abc"
|
||||
<strong>输出:</strong>1
|
||||
<strong>解释:</strong>
|
||||
选取下标为 0 、1 和 2 的字符,可以形成 "abc" 的 1 个副本。
|
||||
@@ -27,7 +29,8 @@
|
||||
|
||||
<p><strong>示例 3:</strong></p>
|
||||
|
||||
<pre><strong>输入:</strong>s = "abbaccaddaeea", target = "aaaaa"
|
||||
<pre>
|
||||
<strong>输入:</strong>s = "abbaccaddaeea", target = "aaaaa"
|
||||
<strong>输出:</strong>1
|
||||
<strong>解释:</strong>
|
||||
选取下标为 0 、3 、6 、9 和 12 的字符,可以形成 "aaaaa" 的 1 个副本。
|
||||
@@ -43,3 +46,7 @@
|
||||
<li><code>1 <= target.length <= 10</code></li>
|
||||
<li><code>s</code> 和 <code>target</code> 由小写英文字母组成</li>
|
||||
</ul>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p><strong>注意:</strong>本题与 <a href="https://leetcode.cn/problems/maximum-number-of-balloons/">1189. “气球” 的最大数量</a> 相同。</p>
|
||||
|
Reference in New Issue
Block a user