Given a linked list, the task is to find the sum of all subsets of a linked list. Examples: Input: 2 -> 3 -> NULL… Read More

# Tag Archives: subset

Given a number N, the task is to find the product of all the elements from all possible subsets of a set formed by first… Read More

Given an array arr[], the task is to calculate the sum of cubes of all possible non-empty subsets of the given array. Since, the answer… Read More

Given an array arr[] of integers and an integer K, the task is to print all subsets of the given array with the sum equal… Read More

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

Given a number N which is the size of the set and a number K, the task is to find the count of subsets, of… Read More

Given an integer array arr[], the task is to divide this array into two non-empty subsets such that the sum of the square of the… Read More

Given an array arr[] of N unique positive integers and an element X, the tasks is to count the total possible number of subsets of… Read More

Given an array arr[] of size N. The task is to find the size of the set of numbers from the given array such that… Read More

Given an array arr[] of N integers, the task is to find the largest subset of arr[] such that in every pair of numbers from… Read More

Given an array arr[] of N non-negative integers and an integer 1 ≤ K ≤ N. The task is to find the sum of the… Read More

Given an array arr[] of N integers and an integer M, the task is to find the number of non-empty subsequences such that the sum… Read More

Given an array arr[] of length N, the task is to find the overall sum of subsets of all the subsets of the array. Examples:… Read More

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

Given an array arr[] of length N, the task is to find the overall sum of subsets of all the subsets of the array.Examples: Input:… Read More