how do i find the number of items in a circular queue?
|front - rear| doesnt always work.
is there one equation to know how many element is in a cir
No of items in Circular queue is,
size = (N-f+r) mod N
where
This formula work for both liner and circular queues.