Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Sign In
▲
Similar Topics
DSA
22.5k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Searching
1.7k+ articles
Tree
1.4k+ articles
Data Structures
1.1k+ articles
Graph
940+ articles
Stack
420+ articles
BFS
210+ articles
tree-level-order
110+ articles
DSA
>
Data Structures
>
Queue
Queue
360+ posts
Popular Articles
Recent Articles
Introduction to Queue Data Structure
Last Updated: 28 March 2025
Queue is a linear data structure that follows FIFO (First In First Out) Principle, so the first element inserted is the first to be popped o
...read more
Queue
Picked
DSA
Tutorials
DSA Tutorials
Real-life Applications of Data Structures and Algorithms (DSA)
Last Updated: 31 July 2024
You may have heard that DSA is primarily used in the field of computer science. Although DSA is most commonly used in the computing field, i
...read more
Arrays
Linked List
Tree
Graph
Stack
Queue
Heap
Hash
Matrix
Data Structures
Data Structures
Data Structures-Binary Trees
Data Structures-Tree Traversals
Data Structures-Linked List
Data Structures-Stack
Data Structures-Queue
Data Structures-Graph
Data Structures-Balanced Binary Search Trees
Data Structures-Hash
Data Structures-Array
Data Structures-Misc
Data Structures-B and B+ Trees
Data Structures-Heap
DSA
Priority Queue in Python
Last Updated: 26 April 2025
A priority queue is like a regular queue, but each item has a priority. Instead of being served in the order they arrive, items with higher
...read more
Queue
Heap
Python
priority-queue
Python-DSA
DSA
Similar Topics
DSA
22.5k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Searching
1.7k+ articles
Tree
1.4k+ articles
Data Structures
1.1k+ articles
Graph
940+ articles
Stack
420+ articles
BFS
210+ articles
tree-level-order
110+ articles
Priority Queue using Linked List
Last Updated: 11 February 2025
Implement Priority Queue using Linked Lists. The Linked List should be so created so that the highest priority ( priority is assigned from 0
...read more
Linked List
Queue
priority-queue
DSA
ZigZag Tree Traversal
Last Updated: 17 May 2025
Given a binary tree, the task is to find the zigzag level order traversal of the tree. In zig zag traversal starting from the first level go
...read more
Tree
Amazon
FactSet
Stack
Queue
cpp-queue
cpp-stack
Traversal
DSA
Program for Page Replacement Algorithms | Set 2 (FIFO)
Last Updated: 15 September 2023
Prerequisite : Page Replacement Algorithms In operating systems that use paging for memory management, page replacement algorithm are needed
...read more
Queue
DSA
Implementation of Deque using circular array
Last Updated: 11 February 2025
Deque or Double Ended Queue is a generalized version of the Queue data structure that allows insert and delete at both ends.Operations on De
...read more
Queue
circular linked list
circular-array
deque
DSA
Minimum steps to reach target by a Knight | Set 1
Last Updated: 25 March 2025
Given a square chessboard of n x n size, the position of the Knight and the position of a target are given. We need to find out the minimum
...read more
Amazon
Graph
Linkedin
MakeMyTrip
Queue
BFS
chessboard-problems
DSA
Longest Valid Parentheses Substring
Last Updated: 11 February 2025
Given a stringstrconsisting of opening and closing parenthesis '(' and ')', the task is to find the length of the longest valid parenthesis
...read more
Strings
Amazon
Google
Stack
Queue
Dynamic Programming
DSA
Rotten Oranges - Minimum Time to Rot All
Last Updated: 01 April 2025
Given a matrix of dimension mxn, where each cell in the matrix can have values 0, 1 or 2 which has the following meaning:0: Empty cell1: Cel
...read more
Microsoft
Amazon
Samsung
Graph
Accolite
MakeMyTrip
Queue
Matrix
BFS
DSA
Print Nodes in Top View of Binary Tree
Last Updated: 23 December 2024
Given a binary tree. The task is to find the top view of the binary tree. The top view of a binary tree is the set of nodes visible when the
...read more
Tree
Amazon
Samsung
Walmart
Paytm
Queue
Hash
BFS
tree-view
DSA
Deque - Introduction and Applications
Last Updated: 11 May 2025
Deque or Double Ended Queue is a generalized version of Queue data structure that allows insert and delete at both ends. Below is an example
...read more
Queue
cpp-deque
deque
DSA
Connect n ropes with minimum cost
Last Updated: 28 March 2025
Given an array arr[]of rope lengths, connect all ropes into a single rope with the minimum total cost. The cost to connect two ropes is the
...read more
Amazon
Goldman Sachs
Queue
Greedy
Heap
OYO
DSA
Applications of Queue Data Structure
Last Updated: 28 March 2023
Introduction :A queue is a linear data structure that follows the "first-in, first-out" (FIFO) principle. It is a collection of elements tha
...read more
Queue
DSA
Level order traversal in spiral form
Last Updated: 15 May 2025
Given a binary tree and the task is to find the spiral order traversal of the tree and return the list containing the elements.Spiral order
...read more
Tree
Microsoft
Amazon
Adobe
Morgan Stanley
Flipkart
Accolite
Payu
Hike
MakeMyTrip
Housing.com
Ola Cabs
Teradata
Stack
Queue
spiral
Recursion
deque
tree-level-order
DSA
First
1
2
3
4
5
6
7
8
>>
Last
First
1
2
3
4
5
6
>>
Last
First
1
2
3
4
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !