mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 00:11:41 +08:00
移除零宽空格
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<p>You are given a string <code>s</code> consisting only of characters <code>'a'</code> and <code>'b'</code>.</p>
|
||||
<p>You are given a string <code>s</code> consisting only of characters <code>'a'</code> and <code>'b'</code>.</p>
|
||||
|
||||
<p>You can delete any number of characters in <code>s</code> to make <code>s</code> <strong>balanced</strong>. <code>s</code> is <strong>balanced</strong> if there is no pair of indices <code>(i,j)</code> such that <code>i < j</code> and <code>s[i] = 'b'</code> and <code>s[j]= 'a'</code>.</p>
|
||||
|
||||
@@ -28,5 +28,5 @@ Delete the characters at 0-indexed positions 3 and 6 ("aab<u>a</u>bb<u>a</u
|
||||
|
||||
<ul>
|
||||
<li><code>1 <= s.length <= 10<sup>5</sup></code></li>
|
||||
<li><code>s[i]</code> is <code>'a'</code> or <code>'b'</code>.</li>
|
||||
<li><code>s[i]</code> is <code>'a'</code> or <code>'b'</code>.</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user