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
Arrays
6.4k+ articles
C++
4.2k+ articles
Tree
1.4k+ articles
STL
1.2k+ articles
Data Structures
1.1k+ articles
Graph
940+ articles
Queue
360+ articles
BFS
210+ articles
tree-level-order
110+ articles
cpp-queue
63 posts
Popular Articles
Recent Articles
C++ STL - Reverse Priority Queue
Last Updated: 02 November 2022
A priority Queue is an abstract data type that resembles a queue, and each element has a corresponding priority value. Priority queues are b
...read more
Technical Scripter
STL
C++
cpp-queue
Picked
Technical Scripter 2022
How to Iterate a STL Queue in C++?
Last Updated: 06 February 2023
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).
...read more
STL
C++
C++ Programs
cpp-queue
Picked
Important functions of STL Components in C++
Last Updated: 02 November 2023
[tabby title="C++"][sourcecode language="cpp"]// C++ code#include iostream#include utilityusing namespace std;int main(){ // Declaring th
...read more
Articles
Stack
Queue
Competitive Programming
STL
cpp-vector
C++
Data Structures
C++ Programs
cpp-unordered_map
cpp-queue
cpp-map
cpp-set
cpp-stack
cpp-list
cpp-priority-queue
cpp-unordered_map-functions
cpp-stack-functions
cpp-map-functions
DSA
Similar Topics
DSA
22.5k+ articles
Arrays
6.4k+ articles
C++
4.2k+ articles
Tree
1.4k+ articles
STL
1.2k+ articles
Data Structures
1.1k+ articles
Graph
940+ articles
Queue
360+ articles
BFS
210+ articles
tree-level-order
110+ articles
Sum of cousins of a given node in a Binary Tree
Last Updated: 30 August 2022
Given a binary tree and data value of a node. The task is to find the sum of cousin nodes of given node. If given node has no cousins then r
...read more
Binary Tree
Data Structures
cpp-queue
tree-level-order
DSA
Check if two nodes are cousins in a Binary Tree using BFS
Last Updated: 23 September 2024
Given a binary tree (having distinct node values) root and two node values. The task is to check whether the two nodes with values a and b a
...read more
Tree
Binary Tree
Data Structures-Tree Traversals
cpp-queue
tree-level-order
DSA
Reverse a path in BST using queue
Last Updated: 17 August 2022
Given a binary search tree and a key, your task to reverse path of the binary tree.Prerequisite : Reverse path of Binary treeExamples :Input
...read more
Queue
Binary Search Tree
cpp-queue
DSA
Path in a Rectangle with Circles
Last Updated: 29 March 2024
There is a m*n rectangular matrix whose top-left(start) location is (1, 1) and bottom-right(end) location is (m*n). There are k circles each
...read more
Directi
Graph
Searching
Geometric
cpp-queue
circle
square-rectangle
DSA
queue::emplace() in C++ STL
Last Updated: 21 October 2020
Queue is also an abstract data type or a linear data structure, which follows a particular order in which the operations are performed. The
...read more
STL
C++
cpp-queue
queue::swap() in C++ STL
Last Updated: 08 September 2022
Queue is also an abstract data type or a linear data structure, which follows a particular order in which the operations are performed. The
...read more
STL
C++
cpp-queue
priority_queue::top() in C++ STL
Last Updated: 31 July 2022
Priority queues are a type of container adaptors, specifically designed such that the first element of the queue is either the greatest or t
...read more
STL
CPP-Library
C++
cpp-queue
cpp-priority-queue
priority_queue::empty() and priority_queue::size() in C++ STL
Last Updated: 01 June 2023
Priority queues are a type of container adaptors, specifically designed such that the first element of the queue is either the greatest or t
...read more
STL
CPP-Library
C++
cpp-queue
cpp-priority-queue
Number of visible boxes after putting one inside another
Last Updated: 12 April 2023
Given N boxes and their size in an array. You are allowed to keep a box inside another box only if the box in which it is held is empty and
...read more
Arrays
Sorting
Mathematical
cpp-queue
DSA
Iterative diagonal traversal of binary tree
Last Updated: 26 September 2024
Given a Binary Tree, the task is to print the diagonal traversal of the binary tree.Note: If the diagonal element are present in two differe
...read more
Tree
cpp-queue
DSA
Check if the given array can represent Level Order Traversal of Binary Search Tree
Last Updated: 14 October 2024
Given an array of size n. The task is to check whether the given array can represent the level order traversal of a Binary Search Tree or no
...read more
Tree
cpp-queue
tree-level-order
DSA
Find the largest multiple of 3 | Set 1 (Using Queue)
Last Updated: 20 May 2024
Given an array of non-negative integers. Find the largest multiple of 3 that can be formed from array elements.Examples:Input: {8,1,9}Output
...read more
Queue
divisibility
cpp-queue
DSA
First
1
2
3
4
5
>>
Last
First
1
2
3
4
5
>>
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 !