##
Length of Longest sub-string that can be removed
November 7, 2016

Given a binary string (consists of only 0 and 1). If there is “100” as a sub-string in the string, then we can delete this… Read More »

November 7, 2016

Given a binary string (consists of only 0 and 1). If there is “100” as a sub-string in the string, then we can delete this… Read More »

November 6, 2016

Given an array containing one digit numbers only, assuming we are standing at first index, we need to reach to end of array using minimum… Read More »

October 29, 2016

Given a set S consisting of n numbers, find the sum of difference between last and first element of each subset. We find first and… Read More »

October 27, 2016

Given an array, the task is to find three elements of this array such that they are in sorted form i.e. for any three elements… Read More »

October 23, 2016

How to convert a 2-d array of size (m x n) into 1-d array and how to store the element at position [i, j] of… Read More »

October 21, 2016

Given a set, we need to find maximum and minimum possible product among all subsets of the set. Examples: Input : arr[] = {4, -2,… Read More »

October 20, 2016

Given an array of size n and a number k. We must modify array K number of times. Here modify array means in each operation… Read More »

October 17, 2016

Given an array arr[] of size n>4, the task is to check whether the given array can be arranged in the form of Left or… Read More »

September 27, 2016

Given an array of n distinct elements. Find the maximum of product of Minimum of two numbers in the array and absolute difference of their… Read More »

Given an array containing positive and negative numbers. The array represents checkpoints from one end to other end of street. Positive and negative values represent… Read More »

September 21, 2016

Given an array of three colors. The array elements have a special property. Whenever two elements of different colors become adjacent to each other, they… Read More »

September 15, 2016

Given a binary string, find if it is possible to make all its digits equal (either all 0’s or all 1’s) by flipping exactly one… Read More »

September 12, 2016

Given a binary array, find the maximum number zeros in an array with one flip of a subarray allowed. A flip operation switches all 0s… Read More »

September 11, 2016

Given an array, arr[] find the maximum value of (arr[i] – i) – (arr[j] – j) where i is not equal to j. Where i… Read More »

September 7, 2016

Given a binary array of size n where n > 3. A true (or 1) value in the array means active and false (or 0)… Read More »