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