單項選擇題

循環(huán)隊列的隊頭和隊尾指針分別為front和rear,則判斷循環(huán)隊列為空的條件是()。

A.front==rear
B.front==0
C.rear==0
D.front=rear+1

微信掃碼免費搜題