engineering recuitment GATE CSE 2023-24 Test Series Programming and Data Structure Queue Circular Queue
Which of the following is the condition to check if the circular queue is full or not?
1
if((rear+1)mod n == front)
2
if((rear== n-1) || (front ==0 && rear == n -1))
3
if((front == n-1)
4
if(front ==0 && rear == n -1)