• 2022-06-08
    用数组A[0..N-1]存放循环队列的元素值,若其头尾指针分别为front和rear,则循环队列中当前元素的个数为( )
    A: (rear-front+mod m
    B: (rear-front+1)mod m
    C: (rear-front-1+mod m
    D: (rear-fronmod m