• 2022-05-30
    循环队列用数组A[0,m-1]存放其元素值,已知其头尾指针分别是front和rear则当前队列中的元素个数是( ):
    A: (rear-front+m)%m
    B: ear-front+1
    C: ear-front-1
    D: ear-front