# Tag Archives: partition

Given two binary strings str1 and str2 each of length N, the task is to split the strings in such a way that the sum… Read More
Given a string str of length N and an integer K, the task is to split the string into K sized groups and if the… Read More
Given an array nums[ ] of size N, the task is to split the array into groups of size K using the following procedure: The… Read More
Given an array arr[]. The task is to divide arr[] into the maximum number of partitions, such that, those partitions if sorted individually make the… Read More
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
Given an array arr[] consisting of N integers, the task is to find the number of ways to split the array into non-empty subarrays such… Read More
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
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 an array arr[] consisting of N integers, the task is to find the maximum Bitwise XOR of Bitwise OR of every subarray after splitting… Read More
Given an array arr[] of size N and a number K, the task is to partition the given array into K contiguous subarrays such that… Read More