Implementing Genric queue data structure in Java

Given the linked list implementation of a generic queue in Java.

Rotten Oranges Problem

Given a Matrix of order M*N, where each cell can have zero or one orange. The orange in the cell (if present) can be either […]

Implement Stack using two Queues

We have seen the code to implement a Queue using two stacks. This question is opposite of that. Use only Queue data structure to implement […]

Implementing a Queue using two Stacks

We have seen how to implement Queue using a linked list and using Array as the base data structure.  The question here is that given […]

Array implementation of Queue data structure

To learn the basics of the Queue visit our previous post on implementing Queue using linked list. In case the Queue is implemented using Linked […]

Singly linked list implementation of Queue

In a general Queue (at any office or bank or any other place), people join the queue at the end and are removed from the […]