Which one of the following permutations can be obtained the output using stack assuming that the input is the sequence 1,2,3,4,5 in that order ?
Overall Stats
Answers
I agree with the answer is 54321

Log in to add a comment
Some one who have posted this answer has misguided us

Log in to add a comment
http://www.emis.de/journals/EJC/Volume_13/PDF/v13i1r68.pdf

Log in to add a comment
52314 is the correct ans. for using permutations rules

Log in to add a comment
this is correct answer first push 5,4,3 in the stack and then pop them ns we get 3,4,5 and then push 2,1 and we get 1,2 so answer is 3,4,5,1,2

Log in to add a comment
yup R8 54321

Log in to add a comment
i think there is something wrong

Log in to add a comment
how it can be?

Log in to add a comment
correct answer is 5,4,3,2,1 because stact is a LIFO device

Log in to add a comment
Ashani Imalsha from Colombo, Sri Lanka is saying 3,4,5,2,1 is correct answer
José Dutra Medeiros from Ottawa, Canada is saying 5,4,3,1,2 is correct answer
Mital Patel from Ahmedabad, India is saying 5,4,3,1,2 is correct answer
مفلح بسام الكوفحي is saying 3,4,5,2,1 is correct answer
DASHARATH SINGH from Pune, India is saying 5,4,3,1,2 is correct answer
Related Questions
 [A] Intertel
 [B] Telenet
 [C] VoIP
 [D] VoRP
 [A] Insertion sort
 [B] Binary search
 [C] Radix sort
 [D] Polynomial manipulation
 [A] Divide and conquer strategy
 [B] Backtracking approach
 [C] Heuristic search
 [D] Greedy approach
 [A] Stack
 [B] Set
 [C] List
 [D] Queue
 [A] ab + cd  *
 [B] ab cd +  *
 [C] ab + cd * 
 [D] ab +  cd *