##
Count number of ways to jump to reach end
May 20, 2017

Given an array of numbers where each element represents the max number of jumps that can be made forward from that element. For each array… Read More »

May 20, 2017

Given an array of numbers where each element represents the max number of jumps that can be made forward from that element. For each array… Read More »

We have an integer array that is sorted in ascending order. We also have 3 integers A, B and C. We need to apply A*x*x… Read More »

May 19, 2017

Given an integer array, print k-th distinct element in an array. The given array may contain duplicates and the output should print k-th element among… Read More »

May 18, 2017

Given a array of n numbers. Our task is to find out the number of ways to divide the array into three contiguous parts such… Read More »

We are given an unsorted array of integers in the range from 0 to n-1. We are allowed to swap adjacent elements in array many… Read More »

May 17, 2017

Given an array of n integers. The task is to print the duplicates in the given array. If there are no duplicates then print -1.… Read More »

Given a array of n numbers. We need to count the number of subarrays having the product and sum of elements are equal Examples: Input… Read More »

We are given an array and we have to calculate the product of an array using both iterative and recursive method. Examples: Input : array[]… Read More »

May 15, 2017

We are given an array of integers and a range, we need to find whether the subarray which falls in this range has values in… Read More »

May 14, 2017

Given an array, we need to find two subarrays with a specific length K such that sum of these subarrays is maximum among all possible… Read More »

May 13, 2017

Given an array of n numbers and a number k. We need to divide the array into k partitions (clusters) of same or different length.… Read More »

May 12, 2017

Given an Array, three operations can be performed using any external number x. Add x to an element once Subtract x from an element once… Read More »

Given an array of n distinct positive integers. The task is to find the minimum number of elements to be removed such that no three… Read More »

May 11, 2017

Given two arrays of integers, compute the pair of values (one value in each array) with the smallest (non-negative) difference. Return the difference. Examples: Input… Read More »

May 10, 2017

Write a program to input a list of integers in an array and arrange them in a way similar to the to-and-fro movement of a… Read More »