Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
Tree
1.4K+ articles
STL
1.3K+ articles
Graph
953+ articles
Queue
371+ articles
BFS
228+ articles
tree-level-order
123+ articles
Given an integer N which denotes the number of slots, and an array arr[] consisting of K integers in the range [1, N] . Each element of the array are in the range [1, N] w...
read more
Queue
Searching
DSA
Arrays
BFS
cpp-queue
tree-level-order
Design a data structure that supports the following operations in queue efficiently:push__front(x): Insert an element at the front of the queue.push__middle(x): Inserts el...
read more
Linked List
Queue
Competitive Programming
C++ Programs
DSA
STL
cpp-queue
Given an integer N denoting the number of connected cities ( numbered from 1 to N ) and a 2D array arr[][] consisting of pairs connected to each other by bidirectional bri...
read more
Graph
Queue
Algorithms
DSA
Arrays
Amazon-Question
interview-preparation
BFS
Algorithms-Graph Traversals
cpp-queue
Given an integer N, representing the number of nodes present in an undirected graph, with each node valued from 1 to N, and a 2D array Edges[][], representing the pair of ...
read more
Graph
Queue
Searching
DSA
BFS
graph-connectivity
Graph Traversals
cpp-queue
Linear Queue: A Linear Queue is generally referred to as Queue. It is a linear data structure that follows the FIFO (First In First Out) order. A real-life example of a qu...
read more
Queue
Technical Scripter
Data Structures
Technical Scripter 2020
DSA
cpp-queue
Given an undirected graph consisting of N nodes and M edges, the task is to find the minimum length of the path from Node 1 to Node N passing from every possible node of t...
read more
Graph
Queue
Mathematical
DSA
Arrays
BFS
cpp-queue
Given an undirected and unweighted graph of N nodes and M edges, the task is to count the minimum length paths between node 1 to N through each of the nodes. If there is d...
read more
Graph
Mathematical
DSA
Arrays
BFS
cpp-queue
Given a matrix mat[][] containing only of 0s and 1s, and an array queries[], the task is for each query, say k, is to find the number of connected grid components (cells c...
read more
Graph
Algorithms
Searching
Mathematical
Matrix
Data Structures
DSA
BFS
cpp-queue
connected-components
A Queue is a linear structure that follows a particular order in which the operations are performed. The order is First In First Out (FIFO).Syntax:queuedatatype queuename;...
read more
C++ Programs
C++
Picked
STL
cpp-queue
A priority Queue is an abstract data type that resembles a queue, and each element has a corresponding priority value. Priority queues are built on the top of the max heap...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
STL
cpp-queue
In C++, vectors are dynamic arrays while the queue is a data structure that follows the FIFO (First In First Out) property. In this article, we will learn how to push all ...
read more
C++ Programs
C++
Picked
STL
cpp-vector
cpp-queue
CPP Examples
A circular buffer, also known as a cyclic buffer or ring buffer, is a data structure that uses a single, fixed-size buffer as if it were connected end-to-end. In this arti...
read more
C++ Programs
C++
Picked
cpp-vector
cpp-queue
CPP Examples
In C++ STL, we have a queuecontainer that simulates the queue data structure and follows the FIFO (First In, First Out) rule. In this article, we will learn how to enqueue...
read more
C++ Programs
C++
Picked
STL
cpp-queue
CPP Examples
In C++, the std::stack is a container that follows the LIFO (Last In, First Out) rule, whereas std::queue is a container that follows the FIFO (First In, First Out) rule. ...
read more
C++ Programs
C++
Picked
STL
cpp-queue
cpp-stack
CPP Examples
In C++, we use std::queue which is a container adapter in the standard template library (STL) and is used for managing a collection of elements in a FIFO (first-in, first-...
read more
C++
Picked
STL
cpp-queue
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 !