Queue Data Structure
Practice Problems on Queue
Recent articles on Queue
A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO). A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first. The difference between stacks and queues is in removing. In a stack we remove the item the most recently added; in a queue, we remove the item the least recently added.

Topics :
- Queue
- Applications of Queue Data Structure
- Priority Queue
- Applications of Priority Queue
- Deque
- Circular Queue
- Queue Interface In Java
- Queue In Python
- Queue In C#
- Implement Queue using Stacks
- LRU Cache Implementation
- Implement Stack using Queues
- Queue | Set 2 (Linked List Implementation)
- How to efficiently implement k Queues in a single array?
- Implement a stack using single queue
- Implementation of Deque using circular array
- Circular Queue | Set 2 (Circular Linked List Implementation)
- Implement Stack and Queue using Deque
- Priority Queue using Linked List
- Priority Queue using doubly linked list
- Implementation of Deque using doubly linked list
- Check if a queue can be sorted into another queue using a stack
- Breadth First Traversal or BFS for a Graph
- Level Order Tree Traversal
- Reverse a path in BST using queue
- Construct Complete Binary Tree from its Linked List Representation
- Program for Page Replacement Algorithms | Set 2 (FIFO)
- Check whether a given Binary Tree is Complete or not | Set 1 (Iterative Solution)
- Number of siblings of a given Node in n-ary Tree
- ZigZag Tree Traversal
- FIFO (First-In-First-Out) approach in Programming
- FIFO vs LIFO approach in Programming
- LIFO (Last-In-First-Out) approach in Programming
- Reversing a Queue
- Reversing a queue using recursion
- Reversing the first K elements of a Queue
- Interleave the first half of the queue with second half
- Sorting a Queue without extra space
- Level order traversal in spiral form
- Sliding Window Maximum (Maximum of all subarrays of size k)
- Find the largest multiple of 3 | Set 1 (Using Queue)
- Find the first circular tour that visits all petrol pumps
- Smallest multiple of a given number made of digits 0 and 9 only
- Iterative Method to find Height of Binary Tree
- Implement PriorityQueue through Comparator in Java
- An Interesting Method to Generate Binary Numbers from 1 to n
- Minimum time required to rot all oranges
- Find maximum level sum in Binary Tree
- Sum of minimum and maximum elements of all subarrays of size k.
- Distance of nearest cell having 1 in a binary matrix
- Level order traversal line by line | Set 2 (Using Two Queues)
- First negative integer in every window of size k
- Minimum sum of squares of character counts in a given string after removing k characters
- Queue based approach for first non-repeating character in a stream
- Averages of Levels in Binary Tree
- Stack Permutations (Check if an array is stack permutation of other)
- Check if all levels of two trees are anagrams or not
- Check mirror in n-ary tree
- Check if X can give change to every person in the Queue
Geeksforgeeks Courses:
1. Language Foundation Courses [C++ / JAVA / Python ]
Learn any programming language from scratch and understand all its fundamentals concepts for a strong programming foundation in the easiest possible manner with help of GeeksforGeeks Language Foundation Courses – Java Foundation | Python Foundation | C++ Foundation
2. Geeks Classes Live
Get interview-centric live online classes on Data Structure and Algorithms from any geographical location to learn and master DSA concepts for enhancing your problem-solving & programming skills and to crack the interview of any product-based company – Geeks Classes: Live Session
3. Complete Interview Preparation
Get fulfilled all your interview preparation needs at a single place with the Complete Interview Preparation Course that provides you all the required stuff to prepare for any product-based, service-based, or start-up company at the most affordable prices.
4. DSA Self Paced
Start learning Data Structures and Algorithms to prepare for the interviews of top IT giants like Microsoft, Amazon, Adobe, etc. with DSA Self-Paced Course where you will get to learn and master DSA from basic to advanced level and that too at your own pace and convenience.
5. Company Specific Courses – Amazon, Microsoft, TCS & Wipro
Crack the interview of any product-based giant company by specifically preparing with the questions that these companies usually ask in their coding interview round. Refer GeeksforGeeks Company Specific Courses: Amazon SDE Test Series, etc.

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.


