單項選擇題

判斷一個循環(huán)隊列Q(最多n個元素)為滿的條件是()。

A.Q->rear==Q->front
B.Q->rear==Q->front+1
C.Q->front==(Q->rear+1)%n
D.Q->front==(Q->rear-1)%n

微信掃碼免費搜題