Skip to content

Category Archives: Hash

Arrays and Hash Tables are two of the most widely used data structures in computer science, both serving as efficient solutions for storing and accessing… Read More
Given an array X[] of length N where X[i] ≥ 2 (1 ≤ i ≤ N). Divide each element of X[] into two integers such… Read More
Introduction: Hashing is a technique that maps a large set of data to a small set of data. It uses a hash function for doing… Read More
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

Start Your Coding Journey Now!