不挂科搜题免费

问题:

【填空题】顺序循环队列中,设队头指针为front,队尾指针为rear,队中最多可有MAX个元素,采用

答案:

["rear=(rear+1)%MAX","front=(front+1)%MAX","(rear-front+MAX)%MAX"]