mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<p>Return <code>true</code> <em>if you can make <code>s</code> a valid parentheses string</em>. Otherwise, return <code>false</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
<img alt="" src="https://assets.leetcode.com/uploads/2021/11/06/eg1.png" style="width: 311px; height: 101px;" />
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "))()))", locked = "010100"
|
||||
@@ -24,7 +24,7 @@
|
||||
<strong>Explanation:</strong> locked[1] == '1' and locked[3] == '1', so we cannot change s[1] or s[3].
|
||||
We change s[0] and s[4] to '(' while leaving s[2] and s[5] unchanged to make s valid.</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "()()", locked = "0000"
|
||||
@@ -32,7 +32,7 @@ We change s[0] and s[4] to '(' while leaving s[2] and s[5] unchanged to
|
||||
<strong>Explanation:</strong> We do not need to make any changes because s is already valid.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = ")", locked = "0"
|
||||
|
Reference in New Issue
Block a user