Skip to content

Tag Archives: cpp-unordered_map

Given an array of integers, remove all the elements which appear strictly less than k times.Examples:  Input : arr[] = {1, 2, 2, 3, 2,… Read More
Given an unsorted array of integers, print the array after removing the duplicate elements from it. We need to print distinct array elements according to… Read More
Given an array of integers, remove all the occurrences of those elements which appear strictly more than k times in the array.Examples:  Input : arr[]… Read More
Given an array of integers, find the smallest number after deleting given elements. In case of repeating elements, we delete one instance (from the original… Read More
Given an unsorted array of integers. The task is to find any two non-overlapping pairs whose sum is equal.Two pairs are said to be non-overlapping… Read More
Given an array of integers and an integer ‘k’, the task is to find the largest element from the array that is repeated exactly ‘k’… Read More
Given a NxM matrix of integers containing duplicate elements. The task is to find the count of all majority occurring elements in the given matrix,… Read More
Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all maximum occurring elements in the given matrix.… Read More
Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all even occurring elements in the given matrix.… Read More
Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all minimum occurring elements in the given matrix.… Read More
Given an array of integers containing duplicate elements. The task is to find the sum of all odd occurring elements in the given array. That… Read More
Given an array of integers containing duplicate elements. The task is to find the sum of all even occurring elements in the given array. That… Read More
Given an array of integers containing duplicate elements. The task is to find the sum of all highest occurring elements in the given array. That… Read More
Given an array of integers containing duplicate elements. The task is to find the sum of all least occurring elements in the given array. That… Read More
The unordered_map::equal_range() is an inbuilt function in C++ STL which is used to return the bounds of a range that includes all the elements in… Read More

Start Your Coding Journey Now!