Given an array of integers, find all distinct combinations of given length.
Given an circular array of integers, find subarray in it which has the largest sum.
Given an array of integers, find contiguous subarray within it which has the largest sum.
Given an array of integers, find the maximum difference between two elements in the array such that smaller element appears before the larger element.
The longest bitonic subarray problem is to find a subarray of a given sequence in which the subarray’s elements are first sorted in in increasing order, then in decreasing order, and the subarray is as long as possible.
Given an array of integers, find largest sub-array formed by consecutive integers. The sub-array should contain all distinct values.
Given a limited range array of size n where array contains elements between 1 to n-1 with one element repeating, find the duplicate number in it.
Given an array of integers, replace each element of the array with product of every other element in the array without using division operator.
Given an array of integers, find maximum product of two integers in an array.
Given a binary array, find the index of 0 to be replaced with 1 to get maximum length sequence of continuous ones.
Given an binary array containing 0 and 1, find maximum length sub-array having equal number of 0’s and 1’s.
Given an array of integers, find maximum length sub-array having given sum.
Given an array of integers, check if array contains a sub-array having 0 sum. Also, prints end-points of all such sub-arrays.
Given two sorted arrays X and Y of size m and n each where m >= n and X has exactly n vacant cells, merge elements of Y in their correct position in array X i.e. merge (X, Y) by keeping the sorted order.