How is the front of the queue calculated ?


The front of the queue is calculated by front = (front+1) % size.



Explore posts in the same categories: Data Structure Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • What is the relationship between a queue and its underlying array?
  • Data stored in a queue is actually stored in an array. Two indexes, front and end will be used to...
  • Why is the isEmpty() member method called?
  • The isEmpty() member method is called within the dequeue process to determine if there is an item in the queue...
  • What is a queue ?
  • A Queue is a sequential organization of data. A queue is a first in first out type of data structure....
  • Minimum number of queues needed to implement the priority queue?
  • Two. One queue is used for actual storing of data and another for storing priorities....
  • What is point-to-point messaging?
  • With point-to-point message passing the sending application/client establishes a named message queue in the JMS broker/server and sends messages to...
  • What is queue
  • A messaging system built on the concept of message queues. Each message is addressed to a specific queue; clients extract...
  • What is the difference between Stack and Queue?
  • Stack is a Last In First Out (LIFO) data structure. Queue is a First In First Out (FIFO) data structure...
  • What is the difference between ic and queue ?
  • A ic is typically used for one to many messaging i.e. it supports publish subscribe model of messaging. While queue...
  • What is the difference between topic and queue?
  • A topic is typically used for one to many messaging i.e. it supports publish subscribe model of messaging. While queue...
  • What does the “abstract” keyword mean in front of a method? A class?
  • Abstract keyword declares either a method or a class. If a method has a abstract keyword in front of it,it...

    Comment:

    You must be logged in to post a comment.