1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-12 10:51:42 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

批量更新数据

This commit is contained in:
2025-01-09 20:29:41 +08:00
parent 04ecea043d
commit 48cdd06c2b
5053 changed files with 156164 additions and 135322 deletions

View File

@@ -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 &lt;= target.length &lt;= 10</code></li>
<li><code>s</code><code>target</code> 由小写英文字母组成</li>
</ul>
<p>&nbsp;</p>
<p><strong>注意:</strong>本题与&nbsp;<a href="https://leetcode.cn/problems/maximum-number-of-balloons/">1189. “气球” 的最大数量</a> 相同。</p>