Multiple choice:Suppose that five numbers are pushed onto a stack in the order {
Suppose that five numbers are pushed onto a stack in the order {1, 2, 3, 4, 5}, and the pop sequence is {3, 5, 4, 2, 1}. To obtain such a result, the minimum size of the stack must be: @[C](2)
A. 2
B. 3
C. 4
D. 5
A.2
B.3
C.4
D.5
answer:C
A. 2
B. 3
C. 4
D. 5
A.2
B.3
C.4
D.5
answer:C