Skip to content

Tag Archives: cpp-unordered_set

Given N numbers with no duplicates, count the number of unique triplets (ai, aj, ak) such that their XOR is 0. A triplet is said… Read More
Given two arrays with size n, maximize the first array by using the elements from the second array such that the new array formed contains… Read More
Given two arrays with size n, maximize the first array by using the elements from the second array such that the new array formed contains… Read More
Given two arrays with size n, maximize the first array by using the elements from the second array such that the new array formed contains… Read More
Given two arrays with size n, maximize the first array by using the elements from the second array such that the new array formed contains… Read More
Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Examples :  Input: {4,… Read More
Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Examples :  Input: {4,… Read More
Given an array of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Examples :  Input: {4,… Read More
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 of positive and negative numbers, find if there is a subarray (of size at-least one) with 0 sum. Examples :  Input: {4,… 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

Start Your Coding Journey Now!