mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-09 09:21:40 +08:00
批量更新数据
This commit is contained in:
@@ -2,19 +2,21 @@
|
||||
|
||||
<p>当某个栈为空时,应当删除该栈。当栈中没有元素或不存在该栈时,<code>pop</code>,<code>popAt</code> 应返回 -1.</p>
|
||||
|
||||
<p><strong>示例1:</strong></p>
|
||||
<p><strong>示例 1:</strong></p>
|
||||
|
||||
<pre><strong> 输入</strong>:
|
||||
["StackOfPlates", "push", "push", "popAt", "pop", "pop"]
|
||||
<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>:
|
||||
["StackOfPlates", "push", "push", "push", "popAt", "popAt", "popAt"]
|
||||
<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]
|
||||
|
Reference in New Issue
Block a user