Skip to content

Tag Archives: subset

Given a numeric string str of length N, the task is to find the sum of all possible expressions by inserting the ‘+’ operator between… Read More
Given an array arr[] of size N and an integer K (N % K = 0), the task is to split array into subarrays of… Read More
Given an array arr[] of size N, the task is to find the count of all subsets from the given array whose product of is… Read More
Given two arrays A[] and B[] of size N and an integer K, the task is to check if all possible subset-sums of subsets of… Read More
Given an array arr[] consisting of N positive integers, the task is to minimize the remaining array element that can be obtained by repeatedly removing… Read More
Given an array arr[] of size N, two positive integers M and K, the task is to partition the array into M equal length subsets… Read More
Given a 2D array arr[][] of size N * M, and an integer K, the task is to select K elements with maximum possible sum… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to split the array into K subsets (N % K… Read More
Given an array, arr[] of size N, the task is to find the median of sums of all possible subsets of the given array. Examples:… Read More
Given an array arr[] consisting of N positive integers and the integers X and M, where 0 <= X < M, the task is to… Read More
Given an array arr[] of size N and an integer K, the task is to count the number of subsets from the given array with… Read More
Given an array arr[] consisting of N integers, the task is to check if it is possible to split the integers into two equal length… Read More
Given an integer N and set of all non-negative powers of N as S = {N0, N1, N2, N3, … }, arrange all non-empty subsets… Read More
Given a set of integers S, the task is to divide the given set into two non-empty sets S1 and S2 such that the absolute… Read More
Given an array arr[] consisting of N integers and an integer X, the task is to count the maximum number of subsets possible from the… Read More