更多“通过对堆栈S操作:Push(S,1),Push(S,2),Pop(S),Push(S,3),Pop(S),Pop(S)。输出的序列为:123。() ”相关问题
  • 第1题:

    2、经过以下运算后, x的值是 _______。 InitStack (s); Push(s, 'a'); Push(s, 'b'); Pop(s, x); GetTop(s,x)

    A.a

    B.b

    C.1

    D.0


    B

  • 第2题:

    19、通过对堆栈S操作:Push(S,1), Push(S,2), Pop(S), Push(S,3), Pop(S), Pop(S)。输出的序列为:123。


    231

  • 第3题:

    1、假设你执行了下列的栈操作: s = Stack() s.push(1) s.push(3) s.push(5) s.pop() s.push(7)现在栈内还有哪些元素?

    A.1, 5, 7

    B.3, 5, 7

    C.1, 3, 7

    D.1, 3, 5


    1, 5, 7

  • 第4题:

    假设你执行了下列的栈操作: s = Stack() s.push(1) s.push(3) s.pop() s.push(5) s.push(7)现在栈内还有哪些元素?

    A.1, 5, 7

    B.3, 5, 7

    C.1, 3, 7

    D.1, 3, 5


    1, 5, 7

  • 第5题:

    72、通过对堆栈S操作:Push(S,1), Push(S,2), Pop(S), Push(S,3), Pop(S), Pop(S)。输出的序列为:123。


    错误