Skip to content

Category Archives: Hash

Given two arrays a[] and b[][2] with both having size N. N operations have to be performed, and initially counter will be 0. Additionally, there… Read More
Given a string of lowercase characters from ‘a’ – ‘z’. We need to write a program to print the characters of this string in sorted… Read More
What is Hash Table? An array that stores pointers to records corresponding to a given element. An entry in the hash table is NIL if… Read More
Given two arrays arr1[] and arr2[] of size N each and an array Q[][2] consisting of M queries of the form [x,  y], the task… Read More
Given a string S of size N and a positive integer K. The given string only consists of the first K English lowercase alphabets. The… Read More
Given strings S and T. The task is to check if S can be converted to T by performing at most K operations. For the… Read More
Given an array arr[] and a number K, the task is to find a value X such that maximum number of array elements can be… Read More
In this article, we are given an array that may contain duplicate values. We will print all elements and their frequencies if the duplicates exist.… Read More
Given a positive integer array jobs[] and positive integer K, jobs[i] represent the type of the ith job and K represents the minimum number of… Read More
Given a string S of size N, the task is to find the number of substrings of odd lengths that have a median equal to… Read More
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

Start Your Coding Journey Now!