You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme/1441-build-an-array-with-stack-operations.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
<h2><ahref="https://leetcode.com/problems/build-an-array-with-stack-operations/">1441. Build an Array With Stack Operations</a></h2><h3>Medium</h3><hr><div><p>You are given an integer array <code>target</code> and an integer <code>n</code>.</p>
1
+
<h2><ahref="https://leetcode.com/problems/build-an-array-with-stack-operations">1552. Build an Array With Stack Operations</a></h2><h3>Medium</h3><hr><p>You are given an integer array <code>target</code> and an integer <code>n</code>.</p>
2
2
3
3
<p>You have an empty stack with the two following operations:</p>
4
4
5
5
<ul>
6
-
<li><strong><code>"Push"</code></strong>: pushes an integer to the top of the stack.</li>
7
-
<li><strong><code>"Pop"</code></strong>: removes the integer on the top of the stack.</li>
6
+
<li><strong><code>"Push"</code></strong>: pushes an integer to the top of the stack.</li>
7
+
<li><strong><code>"Pop"</code></strong>: removes the integer on the top of the stack.</li>
8
8
</ul>
9
9
10
10
<p>You also have a stream of the integers in the range <code>[1, n]</code>.</p>
@@ -22,8 +22,9 @@
22
22
<p> </p>
23
23
<p><strongclass="example">Example 1:</strong></p>
24
24
25
-
<pre><strong>Input:</strong> target = [1,3], n = 3
0 commit comments