设以数组A[O..m-1]存放循环队列,front指向队头元素,rear指向队尾元素的下一个位置,则当前队列中的元素个数为()
A.(rear-front+m)%m
B.rear-front+1
C.(front-rear+m)%m
D.(rear-front)%m
正确答案是A
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/431817.html
上一篇:限价商品住房购房人取得房屋权属证书后______年内不得转让所购住房。()
下一篇:After she heard the news,she could barely stand still and the dishes ______ from her hands.