(C)
push 1 → pop 1 → push 2 → push 3 → pop 3 → pop 2 → push 4 → push 5 → pop 5 → pop 4 → push 6 → pop 6
The sequence is 132546
(D)
push 1 → push 2 → push 3 → pop 3 → pop 2 → push 4 → push 5 → pop 5 → push 6 → pop 6 → pop 4 → pop 1
The sequence is 325641
(B)
push 1 → push 2 → push 3 → pop 3 → push 4 → pop 4 → pop 2 → pop 1 → push 5 → pop 5 → push 6 → pop 6
The sequence should be 342156, but the answer is 341256.
Therefore, the choice (B) is wrong. Is that right??? 作者: tony625 時間: 2014-1-26 03:42 PM