單項選擇題

判定一個隊列QU(最多元素為m0)為滿隊列的條件是()

A.QU->rear-QU->front==m0
B.QU->rear-QU->front-1==m0
C.QU->front==QU->rear
D.QU->front==QU->rear+1

微信掃碼免費搜題