← Prev Question Next Question →
47 views
Which of the following permutation can be obtained in the output (in the same order) using a stack assuming that the input is the sequence 1, 2, 3, 4, 5 in that order? 

(1) 3, 4, 5, 1, 2 (2) 3, 4, 5, 2, 1 (3) 1, 5, 2, 3, 4 (4) 5, 4, 3, 1, 2 
by
Request Answer

Please log in or register to answer this question.

Ask a Question