Saturday, 23 May 2015

Q17,Paper 3,D 12. 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 ?




(A) 3, 2, 1, 5, 4
(B) 5, 4, 3, 2, 1
(C) 3, 4, 5, 2, 1
(D) 3, 4, 5, 1, 2
Answer©

No comments:

Post a Comment

Note: only a member of this blog may post a comment.