mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-08 00:41:42 +08:00
移除零宽空格
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<p>A string is <strong>good</strong> if there are no repeated characters.</p>
|
||||
|
||||
<p>Given a string <code>s</code>, return <em>the number of <strong>good substrings</strong> of length <strong>three </strong>in </em><code>s</code>.</p>
|
||||
<p>Given a string <code>s</code>, return <em>the number of <strong>good substrings</strong> of length <strong>three </strong>in </em><code>s</code>.</p>
|
||||
|
||||
<p>Note that if there are multiple occurrences of the same substring, every occurrence should be counted.</p>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "xyzzaz"
|
||||
<strong>Output:</strong> 1
|
||||
<strong>Explanation:</strong> There are 4 substrings of size 3: "xyz", "yzz", "zza", and "zaz".
|
||||
<strong>Explanation:</strong> There are 4 substrings of size 3: "xyz", "yzz", "zza", and "zaz".
|
||||
The only good substring of length 3 is "xyz".
|
||||
</pre>
|
||||
|
||||
@@ -30,5 +30,5 @@ The good substrings are "abc", "bca", "cab", and &
|
||||
|
||||
<ul>
|
||||
<li><code>1 <= s.length <= 100</code></li>
|
||||
<li><code>s</code> consists of lowercase English letters.</li>
|
||||
<li><code>s</code> consists of lowercase English letters.</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user