Skip to content

Tag Archives: cpp-deque

deque::crbegin means constant_reverse_beginner and as the name suggests it returns a constant_reverse_iterator pointing to the last element of the deque. What is a constant iterator?… Read More
deque::get_allocator() is a built in function in C++ STL which is used to get allocator of container deque. Syntax: Allocator_type get_allocator() Parameters: This function does… Read More
The deque::crend() is an inbuilt function in C++ STL which returns a constant reverse iterator which points to the position before the first element of… Read More
The deque::shrink_to_fit() is a built-in function in C++ STL which reduces the capacity of the container to fit its size and destroys all elements beyond… Read More
Given a string S containing letters and ‘#‘. The ‘#” represents a backspace. The task is to print the new string without ‘#‘. Examples:  Input… Read More
The cbegin() method in deque is a function in C++ STL which returns an iterator pointing to the first element of the container. Syntax: deque_name.cbegin()… Read More
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… Read More
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., its… Read More
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… Read More
The deque::insert() function is a built-in function in C++ which is used to insert elements in the deque. The insert() function can be used in… Read More
The deque::rend() is an inbuilt function in C++ STL which returns a reverse iterator which points to the position before the beginning of the deque… Read More
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: deque_name.max_size() Parameters:… Read More
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 called… Read More
Deque or Double ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but… Read More
Deque or Double ended queues are sequence containers with the feature of expansion and contraction on both the ends. They are similar to vectors, but… Read More

Start Your Coding Journey Now!