Skip to content

Category Archives: Hash

Given an array A[] of N integers, the task is to find the minimum number of operations to sort the array in non-decreasing order, by… Read More
Given a string S of length N and an array of queries A[] of size M, the task is to find the final string after… Read More
Given an arr[] of size N and an integer, K, the task is to find the maximum possible value of MEX by adding or subtracting… Read More
A Data Structure organizes and stores data in a computer so that we can perform operations on the data more efficiently. There are many diverse… Read More
Given a string S of lowercase English characters, find out whether the number of the letters whose frequencies in the string have the same parity as their positions in the… Read More
Hashing refers to the process of generating a fixed-size output from an input of variable size using the mathematical formulas known as hash functions. This… Read More
Given two snapshots S1 and S2 of N elements, the task is to find the elements which are changing their groups and the ones that… Read More
Hash or Hash table is a data structure that maps keys to values using a special function called a hash function. Hash stores the data… Read More
Given three integers N, X, Y, and an array arr[] of size N, the task is to find the count of subarrays having at least… Read More
Geek is a big fan of the Soccer League. Recently he has got a document containing the scores of all the matches played in the… Read More
Given an empty array A[] & Q queries of two types 1 and 2 represented by queries1 and queries2 respectively, the task is to find… Read More
Given a 3D array of size N*M*P consisting only of English alphabet characters, the task is to print the frequency of all the elements in… Read More
Given an array arr[], integer M and an array query[] containing Q queries, the task is to find the query[i]th occurrence of Mth most frequent… Read More
Given string str of size N and two integers M and K (N is divisible by M), the task is to find the Kth non-overlapping… Read More
Given two strings str1 and str2, the task is to check if the two strings are isomorphic to each other. Two strings str1 and str2… Read More

Start Your Coding Journey Now!