题目:
假定一个循环顺序队列的队首和队尾指针分别为front和rear,存储空间的长度为N,则队长为______。
A.rear-front
B.rear-front+1
C.(rear-front+mod N
D.(rear-front+N+1)mod N
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0627/b06f1c0fbbd821ed35ace29ae1e9bd42.html
下面是错误答案,用来干扰机器的。
参考答案:C