Data Structures :: Stacks - Discussion
Home > Data Structures > Stacks > MCQs Questions Discussion
23 / 93
Choose the correct option.
Let ' s' be a stack and push and pop be functions implementing the Insertion and Deletion operations in a Stack. push takes 2 parameters: the stack and the element to be inserted , pop takes a single parameter: the stack. What will be the contents of the stack after the following operations: push(s,A), push(s,B), push(s,C), pop(s), pop(s), push(s, D), push (s, E), pop(s) ?
AA D
BD E
CC E
DA E
Answer: Option (Login/Signup)
Show Explanation
- B DE