Skip to content

Tag Archives: cpp-unordered_map

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[] consisting of N integers, the task is to count the number of ways to split the array into two subarrays of… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the length of the longest subarray such that… Read More
Given a strings S length N consisting of only ‘a’, ‘b’ and ‘c’. The task is to check if it is possible to permute the… Read More
Given two arrays X[] and Y[] consisting of N and M integers such that there are N lines parallel to the y-axis and M lines… Read More
Given an array arr[] of integers and an integer K, the task is to find the length of the smallest subarray that needs to be… Read More
Given two integers L, R, and an integer K, the task is to print all the pairs of Prime Numbers from the given range whose… 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 an array arr[] of size N, the task is to find the number of subarrays having sum of its elements equal to the number… Read More
Given an array arr[] of size N, the task is to count the number of subarrays from the given array, such that each distinct element… Read More
Given a Binary Tree consisting of N nodes rooted at 1, an integer K and an array arr[] consisting of values assigned to each node,… Read More
Given two arrays X[] and Y[] consisting of N and M integers such that there are N lines parallel to the y-axis and M lines… Read More
Given an integer K and an array arr[] consisting of N positive integers, the task is to find the number of subarrays whose sum modulo… Read More
Given an array arr[] of N integers along with integers M, L, R. Consider a variable S(initially 0). The task is to find the maximum… Read More
Given an array arr[] of N unique integers, the task is to find the cost to arrange them in a circular arrangement in such a… Read More

Start Your Coding Journey Now!