Question: The seven elements A, B, C, D, E, F and G are pushed onto a stack in reverse order, that is, starting from G. The
The seven elements A, B, C, D, E, F and G are pushed onto a stack in reverse order, that is, starting from G. The stack is popped fve times, and each element is inserted into a queue. Two elements are deleted from the queue and pushed back onto the stack. Now, one element is popped from the stack. The popped item is ________.
A. A
B. B
C. F
D. D. G
Step by Step Solution
3.46 Rating (166 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
