What are the sequences of popped out values? - ProProfs Discuss
Topics-
Products +
     

What are the sequences of popped out values?
Following sequence of operation is performed on a stack : Push(1), Push(2), Pop, Push(1), Push(2), Pop, Pop, Pop, Push(2), Pop.



A. 2,2,1,2,2
B. 2,2,1,1,2
C. 2,1,2,2,1
D. 2,1,2,2,2

This question is part of Online Test On Algorithms And Data Structure
Asked by Kavithadevimk, Last updated: Sep 23, 2019

+ AnswerRequest Answer
...

1 Answer

kavithadevimk

Kavithadevimk

Answered on Aug 21, 2018

2,1,2,2,2
 Reply

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.