Skip to content

Tag Archives: Hash

Given two strings X and Y, the task is to find the length of the longest common substring.  Examples: Input: X = “GeeksforGeeks”, y =… Read More
Given an array of size N and two integers M and K., All the integers in the array are in the range [1, M]. Find… Read More
There have always been arguments about how can be a sorting algorithm of linear time complexity be achieved, as all the traditional sorting algorithms are… Read More
Hashing refers to the process of generating a fixed-size output from an input of variable size using the mathematical formulas known as hash functions. This… Read More
Given an array A[] and positive integer K, the task is to count the total number of pairs in the array whose product is divisible… Read More
Given an integer N (which is always a power of 2) denoting the length of an array which contains integers in range [0, N-1] exactly… Read More
Given a matrix of size N * M and Q queries, the task is to find how many different regions will be there, after performing… Read More
Given two arrays arr1[] and arr2[] of pairs of the form {ID, value} of size N and M respectively and an integer target, the task… Read More
Given N ranges of the form L to R, the task is to find the maximum occurred integer in all the ranges. If more than… Read More
Folding Method in Hashing: It breaks up a key value into precise segments that are added to form a hash value, and look at another… Read More
Given an array arr[] of N candies, with N being an even number and arr[i] representing the type of candy. The task is to find… Read More
Given an array of equal-length strings arr[], the task is to make all the strings of the array equal by replacing any character of a… Read More
Given an array arr[] of size N and an integer K, the task is to find the length of the longest subarray having Bitwise XOR… Read More
Given two arrays A[] and B[] of size N, the task is to count the minimum number of swaps of similar indexed elements required to… Read More
Given a string S of length N and an integer K, the task is to find the minimum character replacements required to make the string… Read More

Start Your Coding Journey Now!