單項選擇題

最大容量為n的循環(huán)隊列,隊尾指針是rear,隊頭是front,則隊空的條件是()。

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

微信掃碼免費搜題