# Category Archives: Hash (adsbygoogle = window.adsbygoogle || []).push({});

## Sum of all minimum frequency elements in Matrix

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 »

## Design a Hit Counter

Design a hit counter which counts the number of hits received in the past 5 minutes. Source: Microsoft Interview Experience “Design hit counter” problem has… Read More »

## Longest subarray with only one value greater than k

Given an array of N numbers, find length of the longest subarray such that K is the second largest element on insertion. Examples: Input: a[]… Read More »

## Minimum Bitwise AND operations to make any two array elements equal

Given an array of integers of size ‘n’ and an integer ‘k’, We can perform the Bitwise AND operation between any array element and ‘k’… Read More »

## Minimum number of segments required such that each segment has distinct elements

Given an array of integers, the task is to find the minimum number of segments that the array elements can be divided into such that… Read More »

## Arrangement of words without changing the relative position of vowel and consonants

Given a word of length less than 10, the task is to find a number of ways in which it can be arranged without changing… Read More »

## Sum of all odd frequency elements in a Matrix

Given a NxM matrix of integers containing duplicate elements. The task is to find the sum of all odd occurring elements in the given matrix.… Read More »

## Product of non-repeating (distinct) elements in an Array

Given an integer array with duplicate elements. The task is to find the product of all distinct elements in the given array. Examples: Input :… Read More »

## Check if a pair with given absolute difference exists in a Matrix

Given a NxM matrix and a difference K. The task is to check if a pair with the given absolute difference exists in the matrix… Read More »

## Sum of all odd frequency elements in an array

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 »

## Check if a pair with given product exists in a Matrix

Given a NxM matrix and a product K. The task is to check if a pair with the given product exists in the matrix or… Read More »

## Pair with given sum in matrix

Given a NxM matrix and a sum S. The task is to check if a pair with given Sum exists in the matrix or not.… Read More »

## Sum of all even occurring element in an array

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 »

## Find the sum of all highest occurring elements in an Array

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 »

## Sum of all minimum occurring elements in an Array

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 »