对于入栈顺序为 a,b,c,d,e,f,g 的序列,下列()不可能是合法的出栈序列。
a, b, c, d,e, f,g
a, d, c, b,e, g, f
a, d, b, c, g, f,e
g, f,e,d,c, b, a
发表评论