Count ways to split array into two equal sum subarrays by changing sign of any one array element
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 »
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 »
Given an array arr[] of size N, the task is to check if any subarray from the given array can be made a palindrome by… Read More »
Given two binary arrays X[] and Y[] of size N, the task is to convert array X[] into array Y[] by minimum number of operations… Read More »
Given a binary array arr[] consisting of equal count of 0s and 1s, the task is to count the minimum number of subarray reversal operations… Read More »
Given an array arr[] consisiting of N integers and two integer values L and R, indicating the starting and ending indices of a subarray, the… Read More »
Given an array arr[] consisting of N integers and an integer K, the task is to find the length of the longest subarray in which… Read More »
Given a binary array arr[], the task is to count the number of subarrays having equal count of 0s and 1s, and all the 0s… Read More »
Given an array arr[] of length N, the task is to find the smallest pair of indices (i, j) such that the product of elements… Read More »
Given an array, arr[] of size N, the task is to count the number of ways to split given array elements into two subarrays such… Read More »
Given an array A[] of size N and a positive integer K, the task is to find the length of the longest subarray such that… Read More »
Given an array arr[] of size N (always power of 2), the task is to find the length of the longest sorted array to which… Read More »
Given an array arr[] consisting of N integers, the task is to count the number of ways to split the array into two subarrays of… Read More »
Given an array arr[] consisting of N integers and an integer K, the task is to find the length of the longest subarray such that… Read More »
Given an array arr[] consisting of N integers and an array Q[][], where each row is a query of the form {L, R}. The task… Read More »
Given an array arr[] consisting of N integers and an array Q[][], where each row denotes a range {l, r}(0 ≤ l ≤ r ≤… Read More »