# Tag Archives: partition

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
Given an array arr[] consisting of N integers, the task is to print the smaller of the two subsets obtained by splitting the array into… Read More
Given an array arr[] consisting of N integers and an integer K, the task is to find the maximum number of disjoint subsets that the… Read More
Given two arrays arr[] and S[] consisting of N and K integers, the task is to find the maximum sum of minimum and maximum of… Read More
Given an array arr[] consisting of N integers, the task is to split the array into subarrays such that the sum of the difference between… Read More
Given a string S consisting of N lowercase alphabets, the task is to check if it is possible to split the string S into three… Read More
Given a string S consisting of N lowercase alphabets, the task is to check if all the strings of at least length 2 formed by… Read More
Given an array arr[] consisting of N integers, the task is to partition the array into two non-empty subarrays such that every element present in… Read More
Given a positive even number N, the task is to split the first N powers of 2 into two equal sequences such that the absolute… Read More
Given a string S, the task is to check if the string can be split into two substrings such that the number of vowels in… Read More
Given two integers M and K and an array arr[] consisting of N positive integers, the task is to check if the array can be… Read More