## Maximize the maximum among minimum of K consecutive sub-arrays

Given an integer K and an array arr[], the task is to split the array arr[] into K consecutive subarrays to find the maximum possible… Read More »

- Check whether an Array is Subarray of another Array
- Sum of minimum elements of all subarrays
- Length of the longest Subarray with only Even Elements
- Length of the longest alternating subarray
- Count pairs in array whose sum is divisible by K
- Check if array can be divided into two sub-arrays such that their absolute difference is K
- Find the sums for which an array can be divided into sub-arrays of equal sum
- Maximum length of the sub-array whose first and last elements are same
- Count sub-arrays whose product is divisible by k
- Find the longest Fibonacci-like subarray of the given array
- Count subarrays with all elements greater than K
- Smallest Integer to be inserted to have equal sums
- Smallest subarray such that all elements are greater than K
- Count subarrays with Prime sum
- Maximum average of a subarray of size of atleast X and atmost Y
- Maximum sum subarray such that start and end values are same
- Number of sub-arrays that have at least one duplicate
- Longest subarray with elements divisible by k
- Sum of minimum element of all subarrays of a sorted array
- Maximize the number of subarrays with XOR as zero
- Maximize the maximum among minimum of K consecutive sub-arrays
- Largest sub-array whose all elements are perfect squares
- Find the number of sub arrays in the permutation of first N natural numbers such that their median is M
- Count Subarrays with Consecutive elements differing by 1
- Minimum LCM and GCD possible among all possible sub-arrays
- Maximum size of sub-array that satisfies the given condition
- Find the count of Strictly decreasing Subarrays
- Range Queries to Find number of sub-arrays with a given xor
- Maximum Subarray Sum after inverting at most two elements
- Count the number of non-increasing subarrays

Given an integer K and an array arr[], the task is to split the array arr[] into K consecutive subarrays to find the maximum possible… Read More »

Given an array of N elements, the task is to find the longest subarray which is Fibonacci-like. A Fibonacci-like sub-array is defined as an array… Read More »

Given an array of N including positive and negative numbers only. The task is to find the length of the longest alternating (means negative-positive-negative or… Read More »

Given an array arr[] of integers. The task is to return the length of the maximum size sub-array such that either one of the condition… Read More »

Given an array arr[] and an integer K, the task is to find whether the array can be divided into two sub-arrays such that the… Read More »

Given an array of integers arr[], the task is to find all the values for sum such that for a value sum[i] the array can… Read More »

Given an array arr[] of N integers. The task is to count the total number of subarrays of the given array such that difference between… Read More »

Given an array of N positive numbers, the task is to find a contiguous subarray (L-R) such that a[L]=a[R] and sum of a[L] + a[L+1]… Read More »

Given two arrays A[] and B[] consisting of and integers. The task is to check whether the array B[] is a subarray of the array… Read More »

Given an array of integer elements, the task is to find the length of the largest sub-array of such that all the elements of the… Read More »

Given an array A[] of integers. The task is to count the total number of strictly decreasing subarrays( with size > 1 ). Examples: Input… Read More »

Given an array of N integers and a number K, the task is to find the length of the smallest subarray in which all the… Read More »

Given an array A[] of integers. The task is to count total subarrays whose sum is prime with ( size > 1 ). Examples: Input… Read More »

Given an array arr of n elements, the task is to find the number of the sub-arrays of the given array that contain at least… Read More »

Given an array of N integers and a number K, the task is to find the number of subarrays such that all elements are greater… Read More »