答案查看网,轻松搜题/搜资源
登录
×
登录账号
记住密码
立即注册
忘记密码
×
注册
使用微信扫描二维码,获取账号密码后免费查看答案
前往登录
忘记密码
×
忘记密码
使用微信扫描下方二维码,即可找回您的账号密码
前往登录
立即注册
搜题/搜资源
【单选题】【消耗次数:1】
若用一个大小为6的数组来实现循环队列,且当rear和front的值分别为0,3。当从队列中删除一个元素,再加入两个元素后,rear和front的值分别为( )。
①
1和5
②
2和4
③
4和2
④
5和1
参考答案:
复制
纠错
➡️如需代学继续教育,请点击这里
相关题目
【单选题】
若用一个大小为6的数组来实现循环队列,且当前front和rear的值分别为3和0,当从队列中删除一个元素,再加入两个元素后,front和rear的值分别为( )。
①
5和1
②
4和2
③
2和4
④
1和5
查看完整题目与答案
【单选题】
若用一个大小为6的数组来实现循环队列,且当前rear和front的值分别为0和3,当从队列中删除一个元素,再加入两个元素后,rear和front的值分别为多少?( )
①
1和5
②
2和4
③
4和2
④
5和1
查看完整题目与答案
【判断题】
循环队列用a[0],…,a[7]的一维数组存放队列元素,(采用少用一个元素的模式),设front和rear分别为队头和队尾指针,且front和rear 的值分别为2和7,当前队列中的元素个数是5。
①
正确
②
错误
查看完整题目与答案
【判断题】
循环链队列中,设front和rear分别为队头和队尾指针,(最多元素为MaxSize,采用少用一 个元素的模式),判断循环链队列为满的条件为front= =(rear+1)% MaxSize 。
①
正确
②
错误
查看完整题目与答案
【单选题】
在一个链队列中,假定front和rear分别为队首和队尾指针,则删除一个结点的操作为( )。
①
front=front->next
②
rear=rear->next
③
rear=front->next
④
front=rear->next
查看完整题目与答案
【单选题】
在一个链队列中,front和rear分别为头指针和尾指针,则插入一个结点s的操作为( )。
①
front=front->next
②
s->next=rear;rear=s
③
rear->next=s;rear=s;
④
s->next=front;front=s;
查看完整题目与答案
【单选题】
循环队列的队头和队尾指针分别为front和rear,则判断循环队列为空的条件是( )。
①
front==rear
②
front==0
③
rear==0
④
front=rear+1
查看完整题目与答案
【单选题】
在具有n个单元的顺序存储的循环队列中,假定front和rear分别为队头指针和队尾指针,则判断队满的条件为( )。
①
rear%n= = front
②
(front+l)%n= = rear
③
rear%n -1= = front
④
(rear+l)%n= = front
查看完整题目与答案
【单选题】
在具有n个单元的顺序存储的循环队列中,假定front和rear分别为队头指针和队尾指针,则判断队空的条件为( )。
①
rear%n= = front
②
front+l= rear
③
rear= = 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
查看完整题目与答案
随机题目
【单选题】
Hehasspentallhislifeworkingwithmentally______people.
①
disabled
②
discussed
③
naked
④
abolished
查看完整题目与答案
【单选题】
Doctors have said that as many as 50% of patients dont take medicine ______.
①
like directed
②
to be directed
③
as directed
④
so that directed
查看完整题目与答案
【单选题】
After filling out this form, please dont forget to______ your name.
①
sign
②
sigh
③
scribble
④
jot
查看完整题目与答案
【单选题】
—Why didnt you come to join her party?—I______, but I had to deal with something urgent.
①
would have
②
should
③
would do
④
was going to have
查看完整题目与答案
【单选题】
They couldn’t ______ to fly out to see us, and we couldnt either. We were all poor then.
①
offer
②
afford
③
provide
④
supply
查看完整题目与答案
【单选题】
Youve got a divorce? Why did he decide to______ you after seven years together?
①
keep company with
②
part company with
③
keep in touch with
④
stay in touch with
查看完整题目与答案
【单选题】
—How many poor counties will there be in our province by 2020?—There will be only a few, if _______.
①
much
②
some
③
any
④
many
查看完整题目与答案
【单选题】
Henry was very busy yesterday.Otherwise he______ to our my birthday party.
①
would have come
②
came
③
had come
④
will come
查看完整题目与答案
【单选题】
Our parents were strict. They requested that we______ television on week nights.
①
have not watched
②
not be watching
③
must not to watch
④
not watch
查看完整题目与答案
【单选题】
---Why didn’t John call me ? ---Oh, his cell-phone ran out of power, otherwise he______ you.
①
had called
②
would have called
③
called
④
would call
查看完整题目与答案