Jumlah elemen dalam antrian melingkar

size = front > rear ? (MAX - front + rear + 1) : (rear - front + 1);
Heckler