## Remove array end element to maximize the sum of product

Given an array of N positive integers. We are allowed to remove element from either of the two ends i.e from the left side or… Read More »

Given an array of N positive integers. We are allowed to remove element from either of the two ends i.e from the left side or… Read More »

An array consisting of N integers is given. There are several Right Circular Rotations of range[L..R] that we perform. After performing these rotations, we need… Read More »

There is a given an array and split it from a specified position, and move the first part of array add to the end. Examples:… Read More »

Given two arrays A[] and B[] consisting of n and m elements respectively. Find minimum number of elements to remove from each array such that… Read More »

Given an array arr of integers of size n. We need to compute sum of elements from index i to index j. The queries consisting… Read More »

Given an array of size n and a give set of commands of size m. The commands are enumerated from 1 to m. These commands… Read More »

Given an array of n positive integers that represent lengths. Find out the maximum possible area whose four sides are picked from given array. Note… Read More »

Given an array with n positive integers. We need to find the minimum number of operation to make all elements equal. We can perform addition,… Read More »

We are given an array of n elements. The task is to make XOR of whole array 0. We can do following to achieve this.… Read More »

There are two sorted array arr1 and arr2. We have to find the symmetric difference of Aarr1 and arr2. Symmetric Difference basically contains all elements… Read More »

Given two sorted arrays, we need to merge them in O((n+m)*log(n+m)) time with O(1) extra space into a sorted array, when n is the size… Read More »

You have been given an array and you have to make a program to convert that array such that positive elements occur at even numbered… Read More »

Given an infinite sorted array consisting 0s and 1s. The problem is to find the index of first ‘1’ in that array. As the array… Read More »

We are array arr[] of n non-negative integers (repeated elements allowed), find out the sum of maximum difference possible from all subsets of given array.… Read More »

Given an array containing n numbers. The problem is to find the maximum sum bitonic subarray. A bitonic subarray is a subarray in which elements… Read More »