Skip to content

Tag Archives: Hash

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
Given a string S consisting of lowercase alphabets of size N, the task is to count all substrings which contain the most frequent character in… Read More
Given string str of length N and an array arr[] of integers, for array element arr[i](1-based indexing), reverse the substring in indices [arr[i], N –… Read More
Given a string, str, the task is to find the indices of the given string such that the count of lexicographically smaller characters on the… Read More
A cryptographic hash is a fixed size string (or text) that is used as an identifier/fingerprint of some data. These are particularly useful in determining… Read More

Start Your Coding Journey Now!