判定一个循环队列QU(最多元素为m0)为空的条件是____。
A: rear - front= =m0
B: rear-front-1= =m0
C: front= = rear
D: front= = rear+1
A: rear - front= =m0
B: rear-front-1= =m0
C: front= = rear
D: front= = rear+1
举一反三
- 判定一个循环队列Q(最多元素为m0, m0= =Maxsize-1)为满队列的条件是_______ A: (rear+1)%Maxsize == front B: rear-front-1 == m0 C: front == rear D: front == rear+1
- 判定一个循环队列Q(最多元素为m0, m0= =Maxsize-1)为满队列的条件是_______ A: (rear+1)%Maxsize == front B: rear-front-1 == m0 C: front == rear D: front == rear+1
- 判定一个循环队列Q(最多元素为m0, m0= =Maxsize-1)为满队列的条件是_______ A: (rear+1)%Maxsize == front B: rear-front-1 == m0 C: front == rear D: front == rear+1
- 已知其头尾指针分别是front和rear,判定一个循环队列QU(最多元素为m)为空的条件是() A: QU—>front= =QU—>rear B: QU—>front!=QU—>rear C: QU—>front= =(QU—>rear+1)%m D: QU—>front!=(QU—>rear+1)%m
- 判定一个循环队列QU(最多元素为m, m= =Maxsize-1)为满队列的条件是( ) A: (rear+1)% Maxsize = =front B: front= =rear C: rear-front-1= =m D: front= = rear+1