1.

Stack A has 3 Elements in it Say X,Y and Z with X on top.1. Stack B is empty.2. An Element popped out from Stack A can be printed immediately or pushed to stack B.3. An Element popped out from Stack B can only be printed.In this arrangement, which of the following permutations of X,Y,Z are not possible ?

A. Y X Z
B. Z X Y
C. Y Z X
D. Z Y X
Answer» C. Y Z X


Discussion

No Comment Found