mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<p>Given a string <code>s</code>, return the maximum number of ocurrences of <strong>any</strong> substring under the following rules:</p>
|
||||
<p>Given a string <code>s</code>, return the maximum number of occurrences of <strong>any</strong> substring under the following rules:</p>
|
||||
|
||||
<ul>
|
||||
<li>The number of unique characters in the substring must be less than or equal to <code>maxLetters</code>.</li>
|
||||
@@ -6,16 +6,16 @@
|
||||
</ul>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "aababcaab", maxLetters = 2, minSize = 3, maxSize = 4
|
||||
<strong>Output:</strong> 2
|
||||
<strong>Explanation:</strong> Substring "aab" has 2 ocurrences in the original string.
|
||||
<strong>Explanation:</strong> Substring "aab" has 2 occurrences in the original string.
|
||||
It satisfies the conditions, 2 unique letters and size 3 (between minSize and maxSize).
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "aaaa", maxLetters = 1, minSize = 3, maxSize = 3
|
||||
|
Reference in New Issue
Block a user