# Category Archives: Hash

Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Examples :  Input: {4,… Read More
Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Examples :  Input: {4,… Read More
Given two Linked Lists, create union and intersection lists that contain union and intersection of the elements present in the given lists. The order of… Read More
Given two Linked Lists, create union and intersection lists that contain union and intersection of the elements present in the given lists. The order of… Read More
Given two arrays arr[] and powr[] of size N and an integer K. Every element arr[i] has its respective power powr[i]. The task is to… Read More
Given two arrays arr1[] and arr2[] with distinct elements of size N.The task is to count the total number of possible combinations after swapping elements… Read More
Given an array arr[] of size N, the task is to find the value of an integer K such that its repeated subtraction from array… Read More
Universal hashing is a technique used in computer science and information theory for designing hash functions. It is a family of hash functions that can… Read More
Given an array arr[] of N integers, the task is to find the number of pairs of array elements (arr[i], arr[j]) such that the difference… Read More
Given an array arr[] of N integers, the task is to find the maximum count of K, i.e, consecutive integers from 0 to K, that… Read More
Given an array arr[] consisting of N integers, the task for each array element is to find the absolute difference between the count of distinct… Read More
Given two arrays that are duplicates of each other except one element, that is one element from one of the array is missing, we need… Read More
Given two arrays that are duplicates of each other except one element, that is one element from one of the array is missing, we need… Read More
Given two arrays A[] and B[] both consisting of N integers, the task is to find the maximum length of subarray [i, j] such that… Read More
Given an array arr[] of N integers, the task is to find the maximum sum of subarray having length an at least 2 whose first… Read More