Given an array arr[] of length N and an integer X, the task is to find the number of subsets with a sum equal to… Read More

# Tag Archives: subset

Given an array arr[] of N integers, the task is to find the size of the largest subset such that the bitwise AND of all… Read More

Given an array arr[ ] of size N. The task is to find the no of subsets with sum as (sum of the array –… Read More

Given an array arr[] of N integers, the task is to find the maximum count of K, i.e, consecutive integers from 0 to K, that… Read More

Given an array arr[] of N positive integers and a range [L, R], the task is to find the maximum subset-sum such that the difference… Read More

Given two arrays A[] and B[] both consisting of N positive integers, the task is to find the minimum size of the subsets of pair… Read More

Given an array arr[] consisting of N integers, the task is to find the size of the largest subset of the array such that a… Read More

Given an integer N and an array arr[] having M integers, the task is to find the maximum size of the subset such that the… Read More

Given an array arr[] consisting of N positive integers, the task is to find the largest size of the subset of the array arr[] with… Read More

Given two arrays A[] and B[] consisting of N positive integers, the task is to find the total number of subsets of indices such that… Read More

Given an array arr[] of N integers and an integer K, the task is to find the sum of the difference between the maximum and… Read More

Given two positive integers N and K, the task is to find the mean of the minimum of all possible subsets of size K from… Read More

Given an array arr[] consisting of N integers and a positive integer K, the task is to find the sum of all the subsets of… Read More

Given an array arr[] consisting of N positive integers and a positive integer X, the task is to find the subset of the given array… Read More