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

# Tag Archives: partition

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 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 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 an array arr[] of size N, the task is to split the array into the minimum number of subsets such that every element belongs… Read More

Given an array arr[] consisting of N integers and an integer K, the task is to find the number of ways to split the array… Read More

Given a string str, the task is to split the string into maximum number of unique substrings possible and print their count. Examples: Input: str… Read More

Given an array arr[] of size N and a positive integer X, the task is to the partition the array into maximum number of subsets… Read More

Given a binary string str of even length, consisting of equal number of 0s and 1s, the task is to segregate all 1s and 0s… Read More