UGC NET CSE | December 2012 | Part 3 | Question: 17
Which of the following permutations can be obtained in the output using a stack of size 3 elements assuming that input, sequence is 1, 2, 3, 4, 5? 3, 2, 1, 5, 4 5, 4, 3, 2, 1 3, 4, 5, 2, 1 3, 4, 5, 1, 2
Which of the following permutations can be obtained in the output using a stack of size 3 elements assuming that input, sequence is 1, 2, 3, 4, 5?3, 2, 1, 5, 45, 4, 3, 2,...