Skip to content

Tag Archives: Hash

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
Given an array arr[] consisting of N positive integers, the task is to maximize the number of subsequences that can be obtained from an array… Read More
Given an array arr[] consisting of N integers, the task is to print all adjacent integer pairs from the array which appears more than once… Read More
Given an array arr[] of N integers. For each element in the array, the task is to count the possible pairs (i, j), excluding the… Read More
String matching algorithms have greatly influenced computer science and play an essential role in various real-world problems. It helps in performing time-efficient tasks in multiple… Read More
Given an integer K and an array arr[] consisting of N integers, the task is to find the length of the subarray of smallest possible… Read More
Given an array arr[] of N elements. The task is to count the total number of indices (i, j) such that arr[i] = arr[j] and… Read More
Given matrices txt[][] of dimensions m1 x m2 and pattern pat[][] of dimensions n1 x n2, the task is to check whether a pattern exists… Read More
Given an array of items, an ith index element denotes the item id’s, and given a number m, the task is to remove m elements… Read More
Hash Function A Hash function is a function that maps any kind of data of arbitrary size to fixed-size values. The values returned by the… Read More
Given an initial array, A[] and a final array B[] both of size N containing integers from the range [1, N], where A[] represent the… Read More
Given an array arr[] of N strings and an integer K, the task is to print K strings which occurred the most number of times… Read More
Given a string, the task is to write Java program to print all the duplicate characters with their frequency Example:  Input: str = “geeksforgeeks” Output:… Read More
Given an array arr[] of N integers, the task is to replace each element of Array with their rank in array. The rank of an… Read More
Given a string str and an integer K, the task is to find the length of the longest sub-string S such that every character in… Read More

Start Your Coding Journey Now!