k-th missing element in an unsorted array
Given an unsorted sequence a[], the task is to find the K-th missing contiguous element in the increasing sequence of the array elements i.e. consider… Read More »
Given an unsorted sequence a[], the task is to find the K-th missing contiguous element in the increasing sequence of the array elements i.e. consider… Read More »
Given a sorted array A of n integers. The task is to find the sum of minimum of all possible subsequences of A. Note: Considering… Read More »
Given a sorted array A of n integers. The task is to find the sum of minimum of all possible subarrays of A. Examples: Input:… Read More »
Given a NxN matrix, the task is to find the sum of bit-wise OR of all of its rectangular sub-matrices. Examples: Input : arr[][] =… Read More »
Given a NxN matrix, the task is to find the sum of bit-wise AND of all of its rectangular sub-matrices. Examples: Input : arr[][] =… Read More »
Given an array arr[] of n integers. The task is to find the maximum length of the sub-array which has the maximum average value (average… Read More »
Given a character array arr[] containing only lowercase English alphabets, the task is to print the maximum length of the subarray such that the first… Read More »
Given an array arr[] of positive integers and an integer x, the task is to minimize the sum of elements of the array after performing… Read More »
Given an array A[], the task is to find the minimum number of operations required to convert the array into B[] such that for every… Read More »
Given an array of N numbers, the task is to find the number of sub-arrays (size of the sub-array should be an even number) of… Read More »
Given an array of n integers. The task is to find the maximum length of the sub-array such that absolute difference between all the consecutive… Read More »
Given an array of N integers. The task is to eliminate the minimum number of elements such that in the resulting array the sum of… Read More »
Given an array arr[] and an integer k, the task is to find the maximum product from the array such that the frequency sum of… Read More »
Given an array arr[] of N elements, the task is to find the length of the longest sub-sequence in arr[] such that all the elements… Read More »
Given an array arr[], the task is to count the number of elements from the array which divide the sum of all other elements. Examples:… Read More »