Given string S of size N consisting of K distinct characters and (N – K) ‘?’s, the task is to replace all ‘?’ with existing… Read More
Tag Archives: HashTable
Given an array arr[] consisting of N positive integers, the task is to find the count of unique pairs (i, j) such that the sum… Read More
Given an array arr[] consisting of N integers, the task is to count the minimum number of times at most K equal elements are required… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to make all array elements equal to K by repeatedly… Read More
Given an array arr[] of size N, the task is to count the number of unique quadruples (a, b, c, d) from the array such… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the maximum number of pairs having a sum… Read More
Given an integer target and an array arr[] consisting of N positive integers where arr[i] denotes the time required to score 1 point for the… Read More
Given an array arr[] consisting of N strings, the task is to modify the array by replacing the duplicate strings by appending any number such… Read More
Given an array arr[] of size N and an integer S, the task is to find the count of quadruplets present in the given array… Read More
Given two arrays arr[] and brr[] consisting of N integers, the task is to count the number of pairs (i, j) from both the array… Read More
Given an array arr[] consisting of N integers, the task is to count the number of tuples (i, j, k, l) from the given array… Read More
Given an array arr[] of N distinct integers points on the 2D Plane. The task is to count the number of Right-Angled Triangle from N… Read More
Given a string S containing lowercase English alphabets of length N and an integer K such that K ≤ N. The task is to find… Read More
Given a sorted array arr[] of N integers, The task is to find the multiple missing elements in the array between the ranges [arr[0], arr[N-1]].… Read More