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