循环队列的队头和队尾指针分别为front和rear,则判断循环队列为空的条件是()。
A:front==rear B:front==0 C:rear==0 D:front=rear+1
在一个链队列中,front和rear分别为头指针和尾指针,则插入一个结点s的操作为()。
A:front=front->next B:s->next=rear;rear=s C:rear->next=s;rear=s; D:s->next=front;front=s;
在一个链队列中,假定front和rear分别为队首和队尾指针,则删除一个节点的操作为( )。
A:front=front→next B:rear=real→next C:rear=front→next D:front=rear→next
循环队列用数组A[0..m-1]存放其元素值,已知其头尾指针分别为front和rear,则当前元素个数为______。
A:(rear-front+m) MOD m B:rear-front+1 C:rear-front-1 D:rear-front
当 (116) 时,“链式队列为空”(front为头指针,rear为尾指针)。
A:rear==NULL B:front== NULL C:front= =rear D:front!=rear
判断“链式队列为空”的条件是______(front为头指针,rear为尾指针)。
A:front==NULL B:rear==NULL C:front==rear D:front!=rear
假定一个链队列的队首和队尾指针分别为front和rear,则判断队空的条件为( )。
A:front==rear B:front!=NULL C:rear!=NULL D:front==NULL
假定一个链队的队首和队尾指针分别为front和rear,则判断队空的条件为______。
A:front=rear B:front!=NULL C:rear!=NULL D:front=NULL
假定一个链队列的队首和队尾指针分别为front和rear,则判断队空的条件为( )。
A:front==rear B:front!=NULL C:rear!=NULL D:front==NULL