Category: hashing

Check whether an Array is subset of another Array

“Check whether an Array is subset of another Array” is a basic problem which can be solved using multiple methods like brute-force, sorting, binary search and hashing. Here, in this problem, we are given...

Next Greater Frequency Element

“Next Greater Frequency Element” is a standard problem of stack data structure. Here, in this problem, we are given an array and our task is to write a program to find the next (right...

Find Majority Element of an Array

“Find Majority Element of an Array” is one of the most favorite technical interview problem based on array data structure. Here, we are given an array of size ‘n’ and our task is to...

First Repeating Element in an Array

“First Repeating Element in an Array” is an important and one of the favourite technical interview problems based on array data structure. Here, we are given an array of ‘n’ elements and our task...

Pair in an Array with Given Sum

“Pair in an Array with Given Sum” is one of the favorite technical interview problems. Here, we are given an array with ‘n’ elements and a target value ‘x’. Our task is to find...

Find Most Frequent Element in an Array

“Find Most Frequent Element in an Array” is one of the favourite technical interview problem based on array data structutre. Here, we are given an array of ‘n’ elements and Our task is to...

Find First Non-Repeating Character of the String

“Find First Non-Repeating Character of the String” is a very important and popular problem asked in many technical interviews of product-based companies.  Here, we are given a string of length ‘n’ and our task...

Check Pangram String

“Check Pangram String” is a very popular and basic problem of string data structure, asked in many technical interviews. Here, we are given a string of length ‘n’ and our task is to check...

Check Whether String is Palindromic Anagram or Not

“Check Whether String is Palindromic Anagram or Not” is popular interview problem asked in many technical and algorithmic interviews. Here, we are given a string and our task is to write a program to...

Check whether two strings are anagram of each other

“Check whether two strings are anagram of each other” is a very important and one of the most asked technical interview problems based on string data structure.  Here, we are given two strings and...