MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following permutations 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? |
| A. | 1,5,2,3,4 |
| B. | 3,4,5,2,1 |
| C. | 3,4,5,1,2 |
| D. | 5,4,3,2,1 |
| Answer» C. 3,4,5,1,2 | |