##
Check if two arrays are equal or not
March 13, 2017

Given two given arrays of equal length, the task is to find if given arrays are equal or not. Two arrays are said to be… Read More »

March 13, 2017

Given two given arrays of equal length, the task is to find if given arrays are equal or not. Two arrays are said to be… Read More »

March 12, 2017

Given an array of n elements. Consider array as circular array i.e element after an is a1. The task is to find maximum sum of… Read More »

Given two sorted arrays, we can get a set of sums(add one element from the first and one from second). Find the N’th element in… Read More »

March 11, 2017

Given an array of integers (both odd and even), sort them in such a way that the first part of the array contains odd numbers… Read More »

March 10, 2017

Given a array of both positive and negative integers ‘arr[]’ which are sorted. Task is to sort square of the numbers of the Array. Examples:… Read More »

March 9, 2017

Given an array of n elements. The task is to check whether a permutation of given array exists, such that each element indicate number of… Read More »

A non-empty binary array A consisting of size N is given where, 0 represents a car traveling east, 1 represents a car traveling west. The… Read More »

March 8, 2017

Given an array of integer values which need to be sorted by only one operation – subarray rotation where subarray size should be 3. For… Read More »

Given an array of integer numbers, we need to find maximum size of a subset such that sum of each pair of this subset is… Read More »

Given an unsorted array arr[] and an element x, find floor and ceiling of x in arr[0..n-1]. Floor of x is the largest element which… Read More »

Given an array, it can be of 4 types (a) Ascending (b) Descending (c) Ascending Rotated (d) Descending Rotated Find out which kind of array… Read More »

March 7, 2017

Given a sorted array of positive integers, rearrange the array alternately i.e first element should be the maximum value, second minimum value, third-second max, fourth-second… Read More »

March 4, 2017

Given four arrays and an integer x, find the number of quadruples which satisfy a^b^c^d = x, where a belongs from Arr1, b belongs from… Read More »

March 3, 2017

Given an array arr[], find the lexicographically smallest array that can be obtained after performing at maximum of k consecutive swaps. For example:- Input: arr[]… Read More »

March 2, 2017

Given an array arr[] of size n, we need to find sum of all the values that comes from XORing all the elements of the… Read More »