# 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
Recommended Solve DSA problems on GfG Practice. Solve Problems My Personal Notes arrow_drop_up Save
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