Question DSA-STK-0040
EasyStarting with an empty stack, you push 5 items, pop 2, then push 1 more. How many items are on the stack?
- A.
6
- B.
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
Starting with an empty stack, you push 5 items, pop 2, then push 1 more. How many items are on the stack?
6
4
Sign up free to see the answer and a step-by-step explanation.
8
3