What are the sequences of popped out values? - ProProfs Discuss
Topics
Products
Follow Us:

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: Jul 29, 2020

+ Answer
Request

1 Answer

kavithadevimk

Kavithadevimk

Answered Aug 21, 2018

2,1,2,2,2
 

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.