答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
最大容量为n的循环队列,队尾指针是rear,队头是front,则队满的条件是( )。
①
(rear+1) % n==front
②
rear==front
③
rear+1==front
④
(rear-l) % n==front
参考答案:
复制
纠错
相关题目
【单选题】
最大容量为n的循环队列,队尾指针是rear,队头是front,则队空的条件是( )。
①
(rear+1) % n==front
②
rear==front
③
rear+1==front
④
(rear-1) % n==front
查看完整题目与答案
【单选题】
在具有n个单元的顺序存储的循环队列中,假定front和rear分别为队头指针和队尾指针,则判断队满的条件为( )。
①
rear%n= = front
②
(front+l)%n= = rear
③
rear%n -1= = front
④
(rear+l)%n= = front
查看完整题目与答案
【单选题】
循环队列A[m] 存放其元素,用front和rear分别表示队头及队尾,则循环队列满的条件是( )。
①
A.(rear+1)%m=front
②
B.rear=front+1
③
C.rear=front
④
D.(rear+1)%m-1=front
查看完整题目与答案
【单选题】
循环队列的队头和队尾指针分别为front和rear,则判断循环队列为空的条件是( )。
①
front==rear
②
front==0
③
rear==0
④
front=rear+1
查看完整题目与答案
【单选题】
在具有n个单元的顺序存储的循环队列中,假定front和rear分别为队头指针和队尾指针,则判断队空的条件为( )。
①
rear%n= = front
②
front+l= rear
③
rear= = front
④
(rear+l)%n= front
查看完整题目与答案
【判断题】
循环链队列中,设front和rear分别为队头和队尾指针,(最多元素为MaxSize,采用少用一 个元素的模式),判断循环链队列为满的条件为front= =(rear+1)% MaxSize 。
①
正确
②
错误
查看完整题目与答案
【判断题】
在循环队列中,若尾指针rear大于头指针front,其元素个数为rear-front。
①
正确
②
错误
查看完整题目与答案
【单选题】
尾指针分别是front和rear,则执行入队后其尾指针值rear是
①
rear=rear+1
②
rear=(rear+1)%(m-1)
③
rear=(rear+1)%m
④
rear=(rear-1)%m
查看完整题目与答案
【单选题】
在一个链队列中,假定front和rear分别为队首和队尾指针,则删除一个结点的操作为( )。
①
front=front->next
②
rear=rear->next
③
rear=front->next
④
front=rear->next
查看完整题目与答案
【单选题】
在一个链队中,设front和rear分别为队首和队尾指针,则插入p所指结点时,应执行( )。
①
A.front-next=p;front=p;
②
B.rear-next=p;rear=p;
③
C.p-next=rear;rear=p;
④
D.p-next=front;front=p;
查看完整题目与答案
随机题目
【单选题】
Breaking Mary’s doll was purely ____. John didn’t mean to do it.
①
incidental
②
accidental
③
occasion
④
opportunity
查看完整题目与答案
【单选题】
Televisions enable us to see things happen almost at the exact moment ____.
①
which they are happening
②
they are happening
③
which they happen
④
they have happened
查看完整题目与答案
【单选题】
It is the ability to do the job_____ matters, not where you come from or what you are.
①
one
②
that
③
what
④
if
查看完整题目与答案
【单选题】
Mac’s close ____ to his brother made people mistake them for one another.
①
resemblance
②
identity
③
appearance
④
relationship
查看完整题目与答案
【单选题】
Neither he nor I am a musician, _____?
①
am I
②
is he
③
are we
④
do we
查看完整题目与答案
【单选题】
My father is so deaf that he has to use a hearing ____.
①
help
②
aid
③
support
④
tool
查看完整题目与答案
【单选题】
I understand ____ preparation that staff must put in under pressure to meet the deadline.
①
more than the enormous amount of
②
better than most the enormous number of
③
better than most the enormous amount of
④
fewer than the number of
查看完整题目与答案
【单选题】
When I got out of the car and walked about among them, ____ one old man who shook his head disapprovingly, they all began to cheer.
①
see that
②
except that
③
provided that
④
except for
查看完整题目与答案
【单选题】
She resorted to ____ when she had no money to buy foods for her children.
①
have stolen
②
steal
③
stole
④
stealing
查看完整题目与答案
【单选题】
Would you mind _____ your radio a little bit? I cant concentrate on my work.
①
turning on
②
turning down
③
turning to
④
turning in
查看完整题目与答案