Forward List Forward list in STL implements singly linked list. Introduced from C++11, forward lists are more useful than other containers in insertion, removal, and… Read More

# Tag Archives: cpp-unordered_map

Tuple – A tuple is an object that can hold a number of elements. The elements can be of different data types. The elements of… Read More

Given an array arr[] consisting of N integers, the task is to find the maximum element with the minimum frequency. Examples:Attention reader! Don’t stop learning… Read More

Given an array arr[] consisting of N positive integers, the task is to count the number of pairs in the array, say (a, b) such… Read More

Given an array arr[] consisting of N integers, the task is to repeatedly select triplets and remove the maximum and minimum elements from the triplets… Read More

Given an array arr[] consisting of N integers, the task is to find the number of pairs (i, j) whose sum of indices is the… Read More

Given an array arr[] consisting of N integers, the task is to split the array into the minimum number of disjoint groups, such that differences… Read More

Given two arrays W[] and L[] consisting of N positive integers, where W[i] is initially located at position i on an infinite number line. In… Read More

Given a Binary Tree consisting of N nodes having values in the range [0, N – 1] rooted as 0, an array wt[] of size… Read More

Given an array arr[] consisting of N positive integers, the task is to find an index from the array having count of prime numbers present… Read More

Given a string S consisting of N characters (representing the tasks to perform) and a positive integer K, the task is to find the minimum… Read More

Given string S consists of lowercase and uppercase letters, the task is to find the number of substrings having an equal number of lowercase and… Read More

Given an array arr[] consisting of N positive integers, the task is to find the permutation of first N natural numbers such that the given… Read More