Pergunta de entrevista da empresa IBM

How you can determine if the given queue is circular queue or not?

Resposta da entrevista

Sigiloso

9 de nov. de 2016

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.