Question DSA-STK-0049
MediumThe pushes are 1, 2, 3, 4 in that order, with pops allowed in between. Which pop order is impossible?
- A.
4, 1, 2, 3
- B.
1, 2, 3, 4
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Stacks question
The pushes are 1, 2, 3, 4 in that order, with pops allowed in between. Which pop order is impossible?
4, 1, 2, 3
1, 2, 3, 4
Sign up free to see the answer and a step-by-step explanation.
3, 2, 4, 1
2, 1, 4, 3