Question 14067 – Computer-Networks
November 28, 2023
Question 13861 – UGC NET JRF November 2020 Paper-2
November 28, 2023
Question 14067 – Computer-Networks
November 28, 2023
Question 13861 – UGC NET JRF November 2020 Paper-2
November 28, 2023

Question 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.
A
7, 8, 9, 5, 6
B
5, 9, 6, 7, 8
C
7, 8, 9, 6, 5
D
9, 8, 7, 5, 6
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!