Skip to content

Tag Archives: cpp-unordered_set

Given an array arr[] consisting of N distinct positive integers and a range [L, R], the task is to find the element in the given… Read More
Given an array arr[] consisting of N positive integers, the task is to find the number of pairs such that the Greatest Common Divisor(GCD) of… Read More
Given an array arr[] consisting of N positive integers and an integer K, the task is to check if it is possible to reduce the… Read More
Given an array arr[] consisting of N strings, the task is to find the pair of strings that is not present in the array formed… Read More
Given an array of strings arr[] consisting of lowercase and uppercase characters only, the task is to modify the array by removing the characters from… Read More
Given an array of strings arr[][] of size N and a string S, the task is to find the number of strings from the array… Read More
Given a string str of length N and an integer K, the task is to check if a string has two non-overlapping substrings of length… Read More
Given an array of strings arr[] of size N, the task is to print all the distinct strings present in the given array.  Examples:Attention reader!… Read More
Given a string str, consisting of lowercase alphabets, the task is to find the shortest string which is not a subsequence of the given string.… Read More
Given a matrix mat[][] of size M * N, the task is to find all matrix elements which are minimum in their respective row and… Read More
Given two strings start and target(both of the same length) and a list of strings str[], the task is to print all possible smallest sequences… Read More
Given a Binary Tree and an integer K, the task is to check if the Tree consists of a pair of leaf nodes with sum… 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 initial array, A[] and a final array B[] both of size N containing integers from the range [1, N], where A[] represent the… Read More
Given two arrays a[] and b[], the task is to find the count of all pairs (a[i], b[j]) such that a[i] + b[j] is unique… Read More

Start Your Coding Journey Now!