單項(xiàng)選擇題已知元素(8,25,14,87,51,90,6,19,20),問這些元素以怎樣的順序進(jìn)入棧,才能使出棧的順序滿足:8在51前面;90在87的后面;20在14的后面;25在6的前面;19在90的后面。()(題意是全部進(jìn)棧,再依次出棧)

A.20,6,8,51,90,25,14,19,87
B.51,6,19,20,14,8,87,90,25
C.19,20,90,7,6,25,51,14,87
D.6,25,51,8,20,19,90,87,14
E.25,6,8,51,87,90,19,14,20


您可能感興趣的試卷