UGC NET December 2012 computer science answer key for some questions
17)Which of the following permutation can be obtained in the output using a stack of size 3 elements assuming that input seq 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
a)3,2,1,5,4
b)5,4,3,2,1
c)3,4,5,2,1
d)3,4,5,1,2
ANSWERS both A and C are correct
No comments:
Post a Comment