1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-09 09:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

批量更新数据

This commit is contained in:
2025-01-09 20:29:41 +08:00
parent 04ecea043d
commit 48cdd06c2b
5053 changed files with 156164 additions and 135322 deletions

View File

@@ -2,19 +2,21 @@
<p>当某个栈为空时,应当删除该栈。当栈中没有元素或不存在该栈时,<code>pop</code><code>popAt</code>&nbsp;应返回 -1.</p>
<p><strong>示例1:</strong></p>
<p><strong>示例 1</strong></p>
<pre><strong> 输入</strong>
[&quot;StackOfPlates&quot;, &quot;push&quot;, &quot;push&quot;, &quot;popAt&quot;, &quot;pop&quot;, &quot;pop&quot;]
<pre>
<strong> 输入</strong>
["StackOfPlates", "push", "push", "popAt", "pop", "pop"]
[[1], [1], [2], [1], [], []]
<strong> 输出</strong>
[null, null, null, 2, 1, -1]
</pre>
<p><strong>示例2:</strong></p>
<p><strong>示例 2</strong></p>
<pre><strong> 输入</strong>
[&quot;StackOfPlates&quot;, &quot;push&quot;, &quot;push&quot;, &quot;push&quot;, &quot;popAt&quot;, &quot;popAt&quot;, &quot;popAt&quot;]
<pre>
<strong> 输入</strong>
["StackOfPlates", "push", "push", "push", "popAt", "popAt", "popAt"]
[[2], [1], [2], [3], [0], [0], [0]]
<strong> 输出</strong>
[null, null, null, null, 2, 1, 3]