1.

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?

A. 7, 8, 9, 5, 6
B. 5, 9, 6, 7, 8
C. 7, 8, 9, 6, 5
D. 9, 8, 7, 5, 6
Answer» D. 9, 8, 7, 5, 6


Discussion

No Comment Found