Queue Data Structure
Last Updated :
03 Nov, 2024
Improve
A Queue Data Structure is a fundamental concept in computer science used for storing and managing data in a specific order. It follows the principle of "First in, First out" (FIFO), where the first element added to the queue is the first one to be removed. Queues are commonly used in various algorithms and applications for their simplicity and efficiency in managing data flow.

Basics of Queue Data Structure
- Introduction to Queue Data Structure
- Basic Operations of Queue Data Structure
- Different Types of Queue
- Applications, Advantages and Disadvantages of Queue
Implementation of Queues
- Implementations of Queue using Arrays
- Implementations of Queue using Linked List
- Implementation of Deque using doubly linked list
Implementations in various Programming Languages
- Queue in C++ Standard Template Library (STL)
- Queue Interface In Java
- Queue In Python
- Queue In C#
- Queue in JavaScript
Implementing Other Data Structures Using Queue
- Implement a stack using single queue
- Implement Queue using Stacks
- Implement k Queues in a single array
- LRU Cache Implementation
Easy Problems on Queue Data Structure
- Implement Stack using Queues
- Detect cycle in an undirected graph using BFS
- Breadth First Search or BFS for a Graph
- Traversing directory in Java using BFS
- Vertical order traversal of Binary Tree using Map
- Print Right View of a Binary Tree
- Find Minimum Depth of a Binary Tree
- Check whether a given graph is Bipartite or not
Medium Problems on Queue Data Structure
- Flatten a multilevel linked list
- Level with maximum number of nodes
- Find if there is a path between two vertices in a directed graph
- Print all nodes between two given levels in Binary Tree
- Find next right node of a given key
- Minimum steps to reach target by a Knight
- Islands in a graph using BFS
- Level order traversal line by line | Set 3 (Using One Queue)
- Find the first non-repeating character from a stream of characters
Hard Problems on Queue Data Structure
- Sliding Window Maximum (Maximum of all subarrays of size K)
- Flood Fill Algorithm
- Minimum time required to rot all oranges
- Shortest path in a Binary Maze
- An Interesting Method to Generate Binary Numbers from 1 to n
- Maximum cost path from source node to destination
- Shortest distance between two cells in a matrix or grid
- Snake and Ladder Problem
- Find shortest safe route in a path with landmines
- Count all possible walks from a source to a destination with exactly K edges
- Minimum Cost of Simple Path between two nodes in a directed and weighted graph
- Minimum Cost Path in a directed graph via given set of intermediate nodes
- Find the first circular tour that visits all petrol pumps
Quick Links:
Recommended:


