fill in the blanks with the right choice.
Fill in the blanks with the right choice
Add proper suffixesto these words and form new words.please choose the best answer.
用数组Q[n] 表示一个循环队列,f为当前队头元素的位置,r为队尾元素的下一个位置,计算队列中元素个数的公式为
A. r-f
B. (f-r+n)% n
C. r-f+n
D. (r-f+n)% n