Skip to content

Tag Archives: partition

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
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 arr[] consisting of N non-negative integers, the task is to count the number of ways to split the array into three different… 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
Given an array arr[] size N such that each array element is either -1, 0, or 1, the task is to check if is it… Read More
Given a linked list consisting of N nodes and an integer K, the task is to split the given Linked List into K continuous groups… Read More