设输入序列为ABC,输出为ABC,则经过的栈操作为( )
A.正确答案Dpush, pop,push,push,pop,pop
B.push,push,pop,pop,push, pop
C.push,push,push,pop,pop,pop
D.push, pop,push,pop,push,pop
设输入序列为ABC,输出为ABC,则经过的栈操作为( )
设输入序列为ABC,输出为ABC,则经过的栈操作为( )
A.正确答案Dpush, pop,push,push,pop,pop
B.push,push,pop,pop,push, pop
C.push,push,push,pop,pop,pop
D.push, pop,push,pop,push,pop