Computer-Networks
November 28, 2023UGC NET JRF November 2020 Paper-2
November 28, 2023Question 1457 – Data-Structures
Which of the following permutation can be obtained in the same order using a stack assuming that input is the sequence 5, 6, 7, 8, 9 in that order?
Correct Answer: C
Question 324 Explanation:
Push 5 Push 6 Push 7 Pop 7 Push 8 Pop 8 Push 9 Pop 9 Pop 6 Pop 5.
→ Remaining options are not possible.
→ Remaining options are not possible.
7, 8, 9, 5, 6
5, 9, 6, 7, 8
7, 8, 9, 6, 5
9, 8, 7, 5, 6
Subscribe
Login
0 Comments