## Print equal sum sets of array (Partition Problem) | Set 2

Given an array arr[]. Determine whether it is possible to split the array into two sets such that the sum of elements in both the… Read More »

- Subset array sum by generating all the subsets
- Recursive program to generate power set
- Number of subsets with sum divisible by m
- Find all distinct subset (or subsequence) sums of an array | Set-2
- Printing all subsets of {1,2,3,...n} without using array or loop
- Minimum number of palindromes required to express N as a sum | Set 1
- Check whether bitwise AND of a number with any subset of an array is zero or not
- Total number of subsets in which the product of the elements is even
- Find if there is any subset of size K with 0 sum in an array of -1 and +1
- Sum of sum of all subsets of a set formed by first N natural numbers
- Weird Number
- Semiperfect Number

Given an array arr[]. Determine whether it is possible to split the array into two sets such that the sum of elements in both the… Read More »

Given an array arr[] of size n, we need to find sum of all the values that comes from ORing all the elements of the… Read More »

Given an array of n elements, the task is to find the fibonacci sum of a subset of the array where every element of the… Read More »

You are given an array of n-elements, you have to find the number of subsets whose product of elements is less than or equal to… Read More »

An equivalence relation is Reflexive, Symmetric and Transitive. Before counting the number of possible equivalence relations on a set |A|=n, let us see an example… Read More »

Given a number n, divide first n natural numbers (1, 2, …n) into two subsets such that difference between sums of two subsets is minimum.… Read More »

Given a set of positive integers, find all its subsets. Examples: Input : 1 2 3 Output : // this space denotes null element. 1… Read More »

Given an array of n distinct elements, find length of the largest subset such that every pair in the subset is such that the larger… Read More »

Given an array and two integers k and d, find the number of subsets of this array of size k, where difference between the maximum… Read More »

Given a number n, we need to find the sum of all the elements from all possible subsets of a set formed by first n… Read More »

Given an array of non-negative integers and a value sum, determine if there is a subset of the given set with sum equal to given… Read More »

Given a sequence of n numbers. The task is to count all the subsets of the given set which only have even numbers and all… Read More »

Given an array with positive number the task is that we find largest subset from array that contain elements which are Fibonacci numbers. Asked in… Read More »

Given a array of n numbers. We need to count the number of subarrays having the product and sum of elements are equal Examples: Input… Read More »

Given a set of non-negative distinct integers, and a value m, determine if there is a subset of the given set with sum divisible by… Read More »