recategorized by
1,697 views
2 votes
2 votes

Consider a stack S given below with elements 1,2,3 along with the usual operations push(), pop() and top() as shown.

The number of elements that will remain in the stack after the parsing of the input string according to the above SDT rules is _______

I think the answer should be 5 but 4 is provided as answer.

recategorized by

1 Answer

2 votes
2 votes
im unable to understand the question….. can someone pls explain ?

Related questions

2 votes
2 votes
2 answers
1
jatin khachane 1 asked Dec 1, 2018
1,221 views
My doubt : What should we consider ^ operator as Bitwise XOR ? or Exponentiation
2 votes
2 votes
0 answers
4
MiNiPanda asked Jan 17, 2018
441 views
Not able to understand the question. Kindly elaborate along with an explanation. Thank you.