"Suppose that a client performs an intermixed sequence of (stack) push and pop operations. The push operations put the integers 0 through 9 in order onto the stack; the pop operations print out the return values. Which of the following sequence(s) could NOT occur?"
a. 4 3 2 1 0 9 8 7 6 5
b. 4 6 8 7 5 3 2 9 0 1
c. 2 5 6 7 4 8 9 3 1 0
[...]
I'd really appreciate if someone who understands the question would give an explanation
This post has been edited by oha055: 17 November 2012 - 08:36 AM

New Topic/Question
Reply




MultiQuote







|