Skip to content

Category Archives: Hash

Given an array, arr[] representing a permutation of first N natural numbers in the range [1, N], the task for each ith index is to… Read More
Given an array arr[] of size N, the task is to check if any two integers A and B coincide at a single point on… Read More
Given an array arr[] of size N, the task is to find the maximum and minimum sum of Bitwise XOR of all pairs from an… Read More
Given an array arr[] consisting of N positive integers, the task is to find the count of unique pairs (i, j) such that the sum… Read More
Given an array arr[] consisting of N integers, the task is to count the minimum number of times at most K equal elements are required… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to make all array elements equal to K by repeatedly… Read More
Given a string str and an integer K, the task is to find the length of the longest substring S such that every character in… Read More
Given a string S which is an infinite wraparound string of the string “abcdefghijklmnopqrstuvwxyz”, the task is to count the number of unique non-empty substrings… Read More
Given an array arr[] of size N, the task is for every non-repeating array element is to find the highest power of 2 that does… Read More
Given a binary tree consisting of either 1 or 0 as its node values, the task is to find the sum of all vertical levels… Read More
Given two strings str1 and str2 of the lengths of N and M respectively, the task is to find the length of the longest anagram… Read More
Given an array arr[] and three integers X, Y, Z, the task is to find the number of subarrays from the array in which the… Read More
Given a 2D array representing width and level of tiles of equal length, with each level of same total width, the task is to find… Read More
Given an array arr[] consisting of N integers, the task is to find the integers whose digits are anagrams of each other and print the… Read More

Start Your Coding Journey Now!