# 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