## Maximum segment value after putting k breakpoints in a number

Given a large number as string s and an integer k which denotes the number of breakpoints we must put in the number k <=… Read More »

Given a large number as string s and an integer k which denotes the number of breakpoints we must put in the number k <=… Read More »

Given an array of size n. The problem is to find the longest sub-array having exactly k odd numbers. Examples: Input : arr[] = {2,… Read More »

You are given an array of n-elements and an odd-integer m. You have to construct a new sum_array from given array such that sum_array[i] =… Read More »

You are given an array of n-elements you have to find the mean of the array as mean of all consecutive m-elements of array for… Read More »

Given an array of N elements and L and R, print the number of sub-arrays such that the value of the maximum array element in… Read More »

Given an array of integers and k, find the difference between the number of the strictly increasing number of subarrays (of size more than one)… Read More »

Given an array and an integer K. We need to find the maximum of every segment of length K which has no duplicates in that… Read More »

Given N elements and a number K, find the longest subarray which has not more then K distinct elements.(It can have less then K) Examples:… Read More »

We are given an array a consisting of n integers and an integer k. We need to find minimum range in array [l, r] (both… Read More »

Given an array of n integers, for each element, print the distance to the closest zero. Array has a minimum of 1 zero in it.… Read More »

Given a Array of positive numbers, calculate the number of possible subarrays having product greater than a given number K. Examples: Input : arr[] =… Read More »

Given an array of integer and two value k and i where k is number of moves and i is index in array. Task is… Read More »

Given an array of integers, our goal is to find the length of largest subarray having sum of its elements atmost ‘k’ where k>0. Examples:… Read More »

Given a string of length N, find the length of the smallest sub-string consisting of maximum distinct characters. Note : Our output can have same… Read More »

Given an array of integers and a sum. We have to find sum of subarray having maximum sum less than or equal to given sum… Read More »