Skip to content

Tag Archives: partition

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
Given an array arr[] of size N, the task is to check if it is possible to split the array arr[] into different subsequences of… Read More
Given an array arr[] of size N, the task is to split the given array into a minimum number of subarrays such that elements of… Read More
Given an array arr[] of size N and a positive integer K, the task is to check if the array can be split into K… Read More
Given an array arr[] consisting of N distinct integers, the task is to find the minimum number of times the array needs to be split… Read More
Given an array arr[] of size N and a positive integer K, the task is to find the minimum possible cost to split the array… Read More
Given an array arr[] of length N and an integer K, the task is to count the number of pairs (i, j) such that i… Read More
Given an array arr[] consisting of N positive integers, the task is to minimize the remaining array element that can be obtained by repeatedly removing… Read More
Given an array arr[] consisting of N integers, the task is to count ways to split array into two subarrays of equal sum by changing… Read More

Start Your Coding Journey Now!