单选

设将整数1、2、3、4依次进栈,只要出栈时栈非空,则可将出栈操作按任何次序夹人其中;请回答下述问题:

 1.当人、出栈次序为Push(1),Pop(),Push(2),Push(3),Pop(),Push(4),Pop(),出栈的数字序列为何?(这里Push(i)表示i进栈,Pop()表示出栈)(26)

 2.能否得到出栈序列1、4、2、3和1、4、3、2?答案为(27)。

 3.请分析研究1、2、3、4的24种排列中,(28)序列是可以通过相应的入、出栈操作得到的。

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

(127)

  • A.Cache
  • B.Buffer
  • C.Register
  • D.Trigger

(128)

  • A.volume
  • B.space
  • C.capacity
  • D.size

(126)

  • A.sequential
  • B.serial
  • C.chain
  • D.successive

(125)

  • A.instant
  • B.temporary
  • C.timely
  • D.transient

(123)

  • A.predefined
  • B.predetermined
  • C.predicted
  • D.pmscheduled

(122)

  • A.malicious
  • B.greedy
  • C.destructive
  • D.chaos

(121)

  • A.usable
  • B.accessible
  • C.available
  • D.obtainable

(120)

  • A.initiated
  • B.called
  • C.referenced
  • D.invoked
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服