单选

设栈S的初始状态为空,现有5个元素组成的序列{1,2,3,4,5},对该序列在S栈上依次进行如下操作(从序列中的1开始,出栈后不再进栈):进栈、进栈、进栈、出栈、进栈、出栈、进栈。试问出栈的元素序列是(35)。

  • A.{5,4,3,2,1}
  • B.{2,1}
  • C.{2,3}
  • D.{3,4}
参考答案
您可能感兴趣的试题

(74)isn't a type of transmission medium used for LANs.

  • A.Twisted pair
  • B.Coaxial cable
  • C.Satellite
  • D.Optical fiber

Multimedia is the combination of computer and(72)technology.

  • A.word processing
  • B.picture
  • C.video
  • D.radio

A stack protocol can be used for(69).

  • A.job scheduler in Operation System
  • B.operation of arithmetic expressions
  • C.removing the latest element inserted
  • D.removing the earliest element inserted

(70)

  • A.13
  • B.35
  • C.19
  • D.3

(69)

  • A.3323H
  • B.1303H
  • C.B3A3 H
  • D.1903H
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服