Problem Statement: Given a vector find the maximum element of the vector. Example: Example 1: Input: arr = {3,1,9,5,2} Output:
Continue readingCategory: C++ STL
min_element() in C++ STL
Problem Statement: Given a vector find the minimum element of the vector. Example: Example 1: Input: arr = {3,1,9,5,2} Output: 1
Continue readingsort() in C++ STL
Sorting is one of the most standard operations used very frequently while writing programs. Writing the complete sorting algorithm might
Continue reading__builtin_popcount() in STL C++ : Count Set bits
Before we describe this function, can you think of a solution to the problem: “Count Set bits in a given
Continue readingC++ STL Tutorial : Most frequent used STL Containers/Algorithms
What is C++ STL? C++ is one of the most popular high-level programming language which is used extensively for a
Continue readingnext_permutation in C++ STL
next_permutation in STL is a built-in function which as the name suggests returns the next lexicographically greater permutation of the
Continue readingmultimap in C++ STL
What is a multimap in C++ STL? multimap in STL are associative containers like maps where each element consists of
Continue readingList in C++ STL
What is a List? A list in STL is a contiguous container that allows the inserting and erasing of elements
Continue readingpriority_queue in C++ STL
What is Priority Queue? In the case of the max heap, priority queues are a type of container adaptors, specifically
Continue readingdeque in C++ STL
What is Deque? Double Ended Queue which is also called Deque is a type of queue data structure in which
Continue reading