Skip to content

Tag Archives: subset

Given an array arr[ ] and an integer K, the task is to split the given array into minimum number of subsets having the difference… Read More
Given an array A[] consisting of N integers, the task is to split the array A[] into subsets having equal sum and of length equal… Read More
Given two integers N and K, the task is to find the Nth Subset from the sequence of subsets generated from the powers of K… Read More
Given an array arr[], consisting of N non-negative integers and an integer S, the task is to find the number of ways to obtain the… Read More
Given an array A[] consisting of N integers, the task is to find the maximum subset sum possible if the sum of all the elements… Read More
Given an array A[] consisting of N distinct integers, the task is to rearrange the given array such that the sum of every same-indexed non-empty… Read More
Given an array arr[] consisting of N distinct integers and an integer K, the task is to find the maximum size of a subset possible… Read More
Given an array A[ ] of size N and two integers K and D, the task is to calculate the minimum possible number of operations… Read More
Given an array arr[] and integer K, the task is to split the array into subsets of size K, such that each subset consists of… Read More
Given an integer N, the task is to divide the numbers from 1 to N into two nonempty subsets such that the sum of elements… Read More
Given an array arr[], the task is to find the length of the largest subset with the sum of elements less than or equal to… Read More
Given an array arr[] of N positive integers and a positive integer M, the task is to find the length of longest subset whose smallest… Read More
Given an integer K and an array A[ ] whose length is multiple of K, the task is to split the elements of the given… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the length of the longest subsequence with a… Read More
Given an array, arr[] and an integer X, the task is to count the number of elements greater than X after equally dividing the subset… Read More