How you can determine if the given queue is circular queue or not?
Anonymous
We will just take two pointers. one pointer will move one node at a time and another pointer will move two node at a time. We will just compare the address. If the address is same at any time the queue is circular else it is not.
Check out your Company Bowl for anonymous work chats.