Skip to content

Category Archives: Hash

Given a string str and an integer K, the task is to check if a permutation of the given string can be made a palindromic… Read More
Given an array arr[] of size N, the task is to count the maximum number of elements that can be removed from the given array… Read More
Given a string, str, the task is to find the indices of the given string such that the count of lexicographically smaller characters on the… Read More
Given an array arr[] consisting of N distinct positive integers, the task is to print the first K distinct Moran Numbers from the given array.… Read More
Given M servers that handle multiple requests having infinite computational capability and arrays arrivalTime[] and processTime[] of size N denoting the arrival time and load… Read More
Joining two different tables on their matching columns can be done using nested loops, but a more efficient and scalable way is to use multimaps.… Read More
Given an array arr[] consisting of N integers, the task is to create an array brr[] of size N where brr[i] represents the count of… Read More
Given a Binary Tree consisting of N nodes rooted at 1, an integer K and an array arr[] consisting of values assigned to each node,… Read More
Given an array of strings arr[], the task is to find the length of the longest common prefix by rearranging the characters of each string… Read More
Given a string S of length N consisting of lowercase letters and an integer K, where N % K = 0, the task is to… Read More
Given an array arr[] consisting of N integers and 2D array queries[][] consisting of Q queries of the form {p, x}, the task for each… Read More
Given an array arr[] consisting of N positive integers and an integer K. In one operation, select an array element, add it to the sum… Read More
Given an array arr[] consisting of N integers, the task is to find the count of unordered pairs in the given array whose sum contains… Read More
Given an array of strings S[] consisting of N distinct strings of length M. The task is to generate the longest possible palindromic string by… Read More

Start Your Coding Journey Now!