mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
|
||||
<p>We repeatedly make <code>k</code> <strong>duplicate removals</strong> on <code>s</code> until we no longer can.</p>
|
||||
|
||||
<p>Return the final string after all such duplicate removals have been made. It is guaranteed that the answer is unique.</p>
|
||||
<p>Return <em>the final string after all such duplicate removals have been made</em>. It is guaranteed that the answer is <strong>unique</strong>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "abcd", k = 2
|
||||
<strong>Output:</strong> "abcd"
|
||||
<strong>Explanation: </strong>There's nothing to delete.</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "deeedbbcccbdaa", k = 3
|
||||
@@ -22,7 +22,7 @@
|
||||
Then delete "bbb", get "dddaa"
|
||||
Finally delete "ddd", get "aa"</pre>
|
||||
|
||||
<p><strong>Example 3:</strong></p>
|
||||
<p><strong class="example">Example 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> s = "pbbcggttciiippooaais", k = 2
|
||||
@@ -35,5 +35,5 @@ Finally delete "ddd", get "aa"</pre>
|
||||
<ul>
|
||||
<li><code>1 <= s.length <= 10<sup>5</sup></code></li>
|
||||
<li><code>2 <= k <= 10<sup>4</sup></code></li>
|
||||
<li><code>s</code> only contains lower case English letters.</li>
|
||||
<li><code>s</code> only contains lowercase English letters.</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user