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
C++
4.2k+ articles
Difference Between
3.6k+ articles
C++ Programs
2.4k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
Queue
360+ articles
deque
64 articles
cpp-deque-functions
7 articles
cpp-deque
86 posts
Popular Articles
Recent Articles
How to Remove an Element from a Deque in C++?
Last Updated: 27 March 2024
In C++ STL, a container called deque (known as a double-ended queue) allows us to insert and delete elements at both its beginning and its e
...read more
STL
C++
C++ Programs
cpp-deque
Picked
CPP Examples
How to Sort a Deque in C++?
Last Updated: 26 March 2024
In C++, the STL provides a container called a double-ended queue which is popularly known as deque. This container allows fast insertions an
...read more
STL
C++
C++ Programs
cpp-deque
Picked
CPP Examples
How to Initialize a Deque from a Vector in C++?
Last Updated: 15 February 2024
In C++, the Standard Template Library(STL) provides a container deque also known as a double-ended queue where insertion and deletions are p
...read more
STL
cpp-vector
C++
C++ Programs
cpp-deque
Picked
CPP Examples
Similar Topics
DSA
22.5k+ articles
C++
4.2k+ articles
Difference Between
3.6k+ articles
C++ Programs
2.4k+ articles
STL
1.2k+ articles
CPP Examples
700+ articles
CPP-Functions
600+ articles
Queue
360+ articles
deque
64+ articles
cpp-deque-functions
7+ articles
How Deque Works Internally in C++?
Last Updated: 21 December 2022
Prerequisite: Deque in C++Deque or Double Ended Queue is a generalized version of the Queue data structure that allows insert and deletion a
...read more
Technical Scripter
STL
C++
cpp-deque
Picked
Technical Scripter 2022
Deque of Pairs in C++ with Examples
Last Updated: 30 December 2021
What is a deque?In C++, the deque is a sequence container and it is also known by the name, double-ended queue. As the name implies, a deque
...read more
C++
cpp-pair
cpp-deque
deque
Implement dynamic deque using templates class and a circular array
Last Updated: 21 May 2021
The task is to implement a dynamic Deque using templates class and a circular array, having the following functionalities: front(): Get the
...read more
Queue
Data Structures
C++-Templates
cpp-deque
cpp-deque-functions
DSA
Substring of length K having maximum frequency in the given string
Last Updated: 14 September 2023
Given a string str, the task is to find the substring of length K which occurs the maximum number of times. If more than one string occurs m
...read more
Strings
Greedy
Searching
Hash
sliding-window
cpp-map
frequency-counting
cpp-deque
deque
substring
DSA
Circular rotation of an array using deque in C++
Last Updated: 02 June 2022
Given an array arr[] of integers and another integer D, the task is to perform D circular rotations on the array and print the modified arra
...read more
Arrays
rotation
C++ Programs
cpp-deque
DSA
Segregate even and odd nodes in a Linked List using Deque
Last Updated: 17 April 2023
Given a Linked List of integers. The task is to write a program to modify the linked list such that all even numbers appear before all the o
...read more
Linked List
Linked Lists
cpp-deque
deque
DSA
deque rbegin() function in C++ STL
Last Updated: 26 June 2023
The deque::rbegin() is an inbuilt function in C++ STL which returns a reverse iterator which points to the last element of the deque (i.e.,
...read more
STL
CPP-Functions
C++
cpp-deque
deque resize() function in C++ STL
Last Updated: 30 August 2018
The deque::resize() is an inbuilt function in C++ STL which changes the size of the deque. If the given size is greater than the current siz
...read more
STL
CPP-Functions
C++
cpp-deque
deque max_size() function in C++ STL
Last Updated: 27 June 2023
The deque::max_size() is a built-in function in C++ STL which returns the maximum number of elements that a deque container can hold. Syntax
...read more
CPP-Functions
C++
cpp-deque
deque assign() function in C++ STL
Last Updated: 02 November 2018
The deque::assign() is a built-in function in C++ STL which is used to assign values to the same or different deque container. On being call
...read more
STL
CPP-Functions
C++
C++ Programs
cpp-deque
deque::emplace_front() and deque::emplace_back() in C++ STL
Last Updated: 27 June 2023
Deque or Double-ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vec
...read more
STL
C++
cpp-deque
deque::operator= and deque::operator[] in C++ STL
Last Updated: 14 February 2023
Deque or Double ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vec
...read more
STL
C++
cpp-deque
deque
First
1
2
3
4
5
6
>>
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 !