# Tag Archives: HashTable

Given an array arr[] consisting of N integers and an integer K, the task is to find the maximum number of pairs having sum K… 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 ay 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 create an array brr[] of size N where brr[i] represents the count of… 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, arr[N-1]].… Read More
Given an array arr[] and a number K, the task to find the maximum distance between two elements whose absolute difference is K. If it… Read More
Given an array arr[] of N elements. The task is to count the total number of indices (i, j) such that arr[i] = arr[j] and… Read More
Given a string str, the task is to find the number of distinct substrings that are placed consecutively in the given string. Examples:  Input: str… Read More
Given an array arr[] consisting of a permutation of integers [1, N], derived by rearranging the sorted order [1, N], the task is to find… Read More
Given a number in form of string str and an integer K, the task is to find the smallest integer that can be formed after… Read More