判定一个循环队列QU(最多元素为m, m= =Maxsize-1)为满队列的条件是( )
A: (rear+1)% Maxsize = =front
B: front= =rear
C: rear-front-1= =m
D: front= = rear+1
A: (rear+1)% Maxsize = =front
B: front= =rear
C: rear-front-1= =m
D: front= = rear+1
举一反三
- 判定一个循环队列QU(最多元素为m, m= =Maxsize-1)为满队列的条件是____。 A: ((rear- front)+ Maxsize)% Maxsize = =m B: rear-front-1= =m C: front= =rear D: front= = rear+1
- 判定一个循环队列qu(最多元素为MaxSize)为空的条件是()。 A: QU->rear - QU->front = =MaxSize B: QU->rear - QU->front -1= =MaxSize C: QU->front = = QU->rear D: QU->front = = QU->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