Skip to content

Tag Archives: STL

Ordered Set contains UNIQUE elements in sorted order just like set. While dealing with an ordered set with duplicate elements, the pair<int, int> data type… Read More
Map is an associative container available in the C++ Standard Template Library(STL) that is used to store key-value pairs. Let’s see the different ways to… Read More
An unordered_set is an associated container available in the C++ Standard Template Library(STL) that is used for unique elements without any specific ordering, it internally… Read More
unordered_map is an associated container available in the C++ Standard Template Library(STL) that is used to store key-value pairs. It internally uses the working principle… Read More
A set is an associative container available in the C++ Standard Template Library(STL) that is used for unique elements in a specific order, it internally… Read More
Prerequisites: Random-access Iterators, Bidirectional Iterators Sets are a type of associative container in which each element has to be unique because the value of the… Read More
What is deque? In C++, a deque is a sequence container and it is also known by the name, double-ended queue. As the name implies,… Read More
What is a multimap? In C++, a multimap is an associative container that is used to store elements in a mapped fashion. Internally, a multimap… Read More
What is a multimap? In C++, a multimap is an associative container that is used to store elements in a mapped fashion. Internally, a multimap… Read More
What is an array? An array in any programming language is a data structure that is used to store elements or data items of similar… Read More
What is an array? An array in any programming language is a data structure that is used to store elements or data items of similar… Read More
What is an array? An array in any programming language is a data structure that is used to store elements or data items of similar… Read More
A 2D vector also known as vector of vectors is a vector in which each element is a vector on its own. In other words,… Read More
What is Vector? In C++, a vector is similar to dynamic arrays with the ability to resize itself automatically. Vector elements are stored in contiguous… Read More
Given an unsorted vector arr, the task is to create a balanced binary search tree using the elements of the array. Note: There can be… Read More

Start Your Coding Journey Now!