Skip to content

Tag Archives: cpp-unordered_map

Given an array arr[] of size N, the task is to find the maximum and minimum sum of Bitwise XOR of all pairs from an… Read More
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 A[] consisting of N integers, the task is to count the number of pairs (i, j) such that i < j, and… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the longest subsequence of the given array such… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to count the number of pairs satisfying the equation 2*(arr[i]… Read More
Given an array A[] consisting of N (1 ≤ N ≤ 105) positive integers, the task is to find the only array element with a… Read More
Given an array arr[], the task is to find the count of array elements whose squares are already present in the array. Examples: Input: arr[]… Read More
Given two numeric strings N and K (K ≤ N), where digits of K are in non-decreasing order, the task is to rearrange digits of… Read More
Given a string S consisting of ‘X’, ‘Y’ and ‘Z’ only, the task is to convert S to a string consisting of only a single… 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[] of size N, the task is to find the largest non-repeating element present in the given array. If no such element… Read More
Given an array of strings arr[], consisting of strings made up of lowercase and uppercase letters, the task is to print all the strings from… Read More
Given an array arr[] of size N, the task is to print the minimum count of equal length subsets the array can be partitioned into… Read More
Given string str, the task is to find the minimum count of characters that need to be deleted from the string such that the frequency… Read More

Start Your Coding Journey Now!