【判断题】【消耗次数:1】
若输入序列为1,2,3,4,5,6,则通过一个栈可以输出序列3,2,5,6,4,1。
正确
错误
参考答案:
复制
纠错
相关题目
【单选题】 有6个元素按6,5,4,3,2,1 的顺序进栈,问下列( )不是合法的出栈序列?
①  5 4 3 6 1 2
②  4 5 3 1 2 6
③  3 4 6 5 2 1
④  2 3 4 1 5 6
【单选题】 有六个元素6,5,4,3,2,1 的顺序进栈,问下列哪一个不是合法的出栈序列?()
①  5 4 3 6 1 2
②  4 5 3 1 2 6
③  3 4 6 5 2 1
④  2 3 4 1 5 6
【判断题】 一个栈的进栈序列是1,2,3,4,则栈的不可能的出栈序列是4,3,2,1(进出栈操作可以交替进行)
①  正确
②  错误
【单选题】 若已知一个栈的入栈序列是1,2,3,…,n,其输出序列为p1,p2,p3,…,pn,若pn是n,则pi是( )。
①  i
②  n-i
③  n-i+1
④  不确定
【单选题】 一个队列的入队序列是1,2,3,4,则队列的输出序列是
①  1,2,3,4
②  4,3,2,1
③  1,4,3,2
④  3,2,4,1
【单选题】 6,则通过栈的作用后可以得到的输出序列为()。
①  5,3,4,6,1,2
②  3,2,5,6,4,1
③  3,1,2,5,4,6
④  1,5,4,6,2,3
【单选题】 一个栈的进栈序列是2,4,6,8,10,则栈的不可能输出序列是( )(进栈出栈可以交替进行)。
①  A.2,4,6,8,10
②  B.8,6,10,2,4
③  C.8,10,6,4,2
④  D.10,8,6,4,2
【单选题】 这条旋律 “3 4 | 5 6 2 3 | 4 - 1 2 | 3 3 2 2 | 2 1 ||”的节拍为( )
①  2/4
②  3/4
③  4/4
【单选题】 一个队列的入队序列是1,2,3,4,则队列的出队序列是( )。
①  1,2,3,4
②  4,3,2,1
③  1,4,3,2
④  3,4,1,2
【单选题】 有定义语句“int a[][3]={1, 2, 3, 4, 5, 6};”,则a[1][0]的值是____。
①  4
②  1
③  2
④  5
随机题目
【单选题】 asunder
①  from below
②  apart in direction or position
③  in or to a low place
④  from an upright position
【单选题】 sovereign
①  self-governing
②  self-sufficient
③  self-centered
④  self-respected
【单选题】 tribulation
①  contribution
②  delivery
③  distribution
④  great difficulty or trouble
【单选题】 belabour
①  ask sb. to work hard
②  set upon with too much talk
③  furnish with power
④  force upon others
【单选题】 undoing
①  showing
②  aziness
③  cover
④  destruction
【单选题】 adversary
①  a person who gives advice
②  a friend
③  an enemy
④  a listener
【单选题】 subversion
①  rebuilding
②  succession
③  destroying
④  salvage
【单选题】 scamper
①  move onward smoothly
②  drop down directly
③  run quickly and playfully
④  walk forward and backward
【单选题】 facetious
①  unimportant
②  very superficial
③  hideous
④  not serious
【单选题】 anecdote
①  short amusing story
②  long tedious talk
③  uninteresting writing
④  exciting information