Given integers N and K, the task is to check if it is possible to divide N numbers into K groups such that all the… Read More

# Tag Archives: partition

Given an array arr[ ] consisting of N integers, the task is to find maximum difference between the sum of two subsets obtained by partitioning… Read More

Given an array arr[] consisting of N integers and a positive integer K, the task is to maximize the number of subsets having a product… Read More

Partition a Linked List into 3 parts such that the maximum difference between their sizes is minimum

Given a singly linked list, the task is to split the given linked list into exactly three parts such that the maximum difference between the… Read More

Given an array arr[] consisting of N integers, the task is to partition the array into two subsets such that the count of unique elements… Read More

Given a string S consisting of N characters, the task is to find the number of ways to split the string into two subsets such… Read More

Given two integers N, K, and an array, arr[] of size N, containing an equal number of even and odd elements, and also given that… Read More

Given a numeric string S, the task is to find the number of ways to partition a string into substrings consisting of digits in increasing… Read More

Given a binary string, S of size N, the task is to check if it is possible to partition the string into disjoint subsequences equal… Read More

Given an array A[] of size N and an integer diff, the task is to count the number of ways to split the array into… Read More