Top "Queue" questions

A queue is an ordered, first-in-first-out data structure.

How do you implement a Stack and a Queue in JavaScript?

What is the best way to implement a Stack and a Queue in JavaScript? I'm looking to do the shunting-yard …

javascript data-structures stack queue
How do I instantiate a Queue object in java?

When I try: Queue<Integer> q = new Queue<Integer>(); the compiler is giving me an error. …

java data-structures queue
How to implement a queue using two stacks?

Suppose we have two stacks and no other temporary variable. Is to possible to "construct" a queue data structure using …

algorithm data-structures stack queue
what is the basic difference between stack and queue?

What is the basic difference between stack and queue?? Please help me i am unable to find the difference. How …

stack queue
How do I clear the std::queue efficiently?

I am using std::queue for implementing JobQueue class. ( Basically this class process each job in FIFO manner). In one …

c++ data-structures stl queue
FIFO based Queue implementations?

I need a simple FIFO implemented queue for storing a bunch of ints (I don't mind much if it is …

java collections queue
Difference between "enqueue" and "dequeue"

Can somebody please explain the main differences? I don't have a clear knowledge about these functions in programming for any …

queue programming-languages
std::queue iteration

I need to iterate over std::queue. www.cplusplus.com says: By default, if no container class is specified for …

c++ queue iteration c++-standard-library
How to clone object in C++ ? Or Is there another solution?

I wrote a Stack and Queue implementation (Linked List based). There is one stack (bigStack). For example, I separate bigStack (…

c++ data-structures stack queue
Size-limited queue that holds last N elements in Java

A very simple & quick question on Java libraries: is there a ready-made class that implements a Queue with a …

collections queue java