Tutorials
Courses
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
Misc
7.8K+ articles
Mathematical
5.1K+ articles
Arrays
4.2K+ articles
Strings
2.1K+ articles
Greedy
1.4K+ articles
Sorting
1.1K+ articles
Dynamic Programming
1.1K+ articles
Searching
1.0K+ articles
Tree
909+ articles
DSA
/
Data Structures
/
Queue
Queue
225+ posts
Recent Articles
Popular Articles
Fill and Empty a Queue
Last Updated: 23 July 2025
Given an empty queue and an array of elements, we need to perform the following two operations.1. Filling a QueueFilling a queue refers to the process of adding array elem...
read more
Queue
DSA
Data Structures
Top Problems on Deque Data Structure asked in SDE Interviews
Last Updated: 23 July 2025
A Deque (Double-Ended Queue) is a flexible data structure that supports insertion and deletion from both ends in O(1) time. In SDE interviews, deques are frequently tested...
read more
Queue
DSA
Most Commonly Asked Data Structure Interview Questions on Queue
Last Updated: 23 July 2025
A Queue is a linear data structure that follows the First-In-First-Out (FIFO) principle. It is one of the most important and widely used data structures in computer scienc...
read more
Queue
DSA
Enqueue in Queues in Python
Last Updated: 23 July 2025
A queue is a basic data structurethat follows the First-In-First-Out (FIFO) principle. At the back of the queue, elements are added (enqueued), and at the front, they are ...
read more
Queue
Python
Python Programs
Picked
Python-DSA
Queue Data Structure
Last Updated: 23 July 2025
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 ou...
read more
Queue
DSA
How to Iterate over a Queue in Java?
Last Updated: 23 July 2025
Queue is a concept of Linear Data Structure that follows the concept of FIFO(First In First Out). Queues are majorly used to maintain the order of the elements to which th...
read more
Java
Queue
Java Programs
Picked
Java-Collections
java-queue
Java-Queue-Programs
Java Examples
Queue Notes for GATE Exam [2024]
Last Updated: 23 July 2025
A Queue is defined as a linear data structure that is open at both ends and the operations are performed in First In First Out (FIFO) order. Queue is a list in which all a...
read more
Queue
DSA
GATE 2024
GATE-CS 2024
DSA-GATE
FIFO Principle of Queue
Last Updated: 23 July 2025
FIFO stands for "First In, First Out". This principle dictates that the first element added to the queue is the first one to be removed. Understanding the FIFO principle i...
read more
Queue
Picked
DSA
Find the character which remains in the end
Last Updated: 23 July 2025
Given a string S containing only characters 'A' and 'B'. In one operation, one character can able to eliminate the other character which is at any position. This procedure...
read more
Strings
Queue
DSA
What is Queue Data Structure?
Last Updated: 07 July 2023
What is Queue Data Structure?AQueueis defined as a linear data structure that is open at both ends and the operations are performed in First In First Out (FIFO) order.We d...
read more
Queue
Picked
DSA
Last when k numbers are Repeatedly Removed from both ends
Last Updated: 23 July 2025
There are n people from 1 to n are standing in the queue at a movie ticket counter. It is a weird ticket counter, as it distributes tickets to the first k people and then ...
read more
Queue
Greedy
Mathematical
DSA
Data Structures
Greedy Algorithms
two-pointer-algorithm
Top 50 Problems on Queue Data Structure asked in SDE Interviews
Last Updated: 23 July 2025
A Queue is defined as a linear data structure that is open at both ends and the operations are performed in First In First Out (FIFO) order. We define a queue to be a list...
read more
Queue
DSA
top-dsa-problems
Find Kth Largest/Smallest element in a Queue
Last Updated: 23 July 2025
Given a queue of integers and an integer K, our task is to write a program that efficiently finds Kth largest/smallest element present in the queue. Return -1 if the numbe...
read more
Queue
Picked
DSA
Data Structures-Queue
Set
Find Largest element in a Queue
Last Updated: 23 July 2025
Given a queue of integers, the task is to write a program that efficiently finds the largest element in that queue. Return -1 if the queue is empty.Examples:Input:Queue = ...
read more
Queue
Picked
DSA
Arrays
Data Structures-Queue
Minimizing water collection distance in Geek's village
Last Updated: 23 July 2025
Geek's village is represented by a 2-D matrix of characters of size n*m, whereH - Represents a houseW - Represents a well. - Represents an open groundN - Prohibited area(N...
read more
Queue
Matrix
DSA
BFS
1
2
3
4
...
15
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 !