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

# Tag Archives: partition

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 string str, the task is to split the string into the 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 partition the array into the 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

Given an array arr[] of size N, the task is to split the array into two subsets such that the Bitwise XOR between the maximum… Read More

Given an array A[] of size N and a positive integer K ( which will always be a factor of N), the task is to… Read More