Available question text
Given a strictly increasing target array drawn from 1..n, simulate reading the stream 1..n and output "Push" for each number you read, followed by "Pop" whenever that number is not in target, stopping once the stack (bottom-to-top) equals target.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1441. Build an Array With Stack Operations
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source