##
Mean of array using recursion
June 4, 2017

To find the mean of the elements of the array. Mean = (Sum of elements of the Array) / (Total no of elements in Array)… Read More »

June 4, 2017

To find the mean of the elements of the array. Mean = (Sum of elements of the Array) / (Total no of elements in Array)… Read More »

June 3, 2017

Given an array of integers, find sum of array elements using recursion. Examples: Input : A[] = {1, 2, 3} Output : 6 1 +… Read More »

May 31, 2017

Given two sorted arrays, the task is to merge them in a sorted manner. Examples: Input : arr1[] = { 1, 3, 4, 5} arr2[]… Read More »

May 29, 2017

Given two sorted arrays. There is only 1 difference between the arrays. First array has one element extra added in between. Find the index of… Read More »

May 28, 2017

Given a sorted array, the task is to remove the duplicate elements from the array. Examples: Input : arr[] = {2, 2, 2, 2, 2}… Read More »

May 24, 2017

Given an array of n integers. The task is to find the difference of first and last index of each distinct element so as to… Read More »

May 23, 2017

Given a set of n numbers. The task is to count all the subsets of the given set which only have even numbers and all… Read More »

May 21, 2017

Given two sorted arrays of size m and n respectively, you are tasked with finding the element that would be at the k’th position of… Read More »

Given an array of n integers. The task is to find the first element that occurs k number of times. If no element occurs k… Read More »

Given an array with positive number the task is that we find largest subset from array that contain elements which are Fibonacci numbers. Asked in… Read More »

Given two integer arrays arr1[] and arr2[] sorted in ascending order and an integer k. Find k pairs with smallest sums such that one element… Read More »

Given a array of n integers, we need to check whether for every pair of numbers a[i] & a[j] there exists a a[k] such that… Read More »

Given an array, the task is to reverse the array without using subtract sign ‘-‘ anywhere in your code. It is not tough to reverse… 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 »