## Find an index such that difference between product of elements before and after it is minimum

Given an integer arr[], the task is to find an index such that the difference between the product of elements up to that index and… Read More »

- Make all numbers of an array equal
- Reach the numbers by making jumps of two given lengths
- Sum of XOR of all subarrays
- Check if a number is perfect square without finding square root
- Nth number whose sum of digit is multiple of 10
- Count pairs in array whose sum is divisible by K
- Puzzle | Neighbors in a round table
- Minimum operations required to make all the array elements equal
- Find K Closest Points to the Origin
- Generate all rotations of a number
- A Sum Array Puzzle
- Check if it is possible to reach a number by making jumps of two given length
- Count of pairs (x, y) in an array such that x < y
- Distribute N candies among K people
- Find the number in a range having maximum product of the digits
- Count rotations of N which are Odd and Even
- Given two arrays count all pairs whose sum is an odd number
- Sum of all Submatrices of a Given Matrix
- New Algorithm to Generate Prime Numbers from 1 to Nth Number
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Number of array elements derivable from D after performing certain operations
- Minimum number of sets with numbers less than Y
- Midpoint ellipse drawing algorithm
- Sum of bitwise AND of all subarrays
- Sum of the series 1^1 + 2^2 + 3^3 + ..... + n^n using recursion
- Remove characters from a numeric string such that string becomes divisible by 8
- Represent n as the sum of exactly k powers of two | Set 2
- Count of all possible values of X such that A % X = B
- Find the value of ln(N!) using Recursion
- Find sub-arrays from given two arrays such that they have equal sum

Given an integer arr[], the task is to find an index such that the difference between the product of elements up to that index and… Read More »

Given two integers N and M that represent the length and breadth of a rectangular plot and another integer K that represent the number of… Read More »

Given two integer N and K, the task is to find the permutation P of first N natural numbers such that there are exactly K… Read More »

Given an integer N in the form of string, the task is to find the largest even number from the given number when you are… Read More »

Given an array of size N in which initially all the elements are 0(zero). The task is to count the number of 1’s in the… Read More »

Given an array arr[] and a number K. The task is to find out the number of valid positions i such that (arr[i] + K)… Read More »

Given two circles, of given radii, have there centres a given distance apart, such that the circles intersect each other at two points. The task… Read More »

Given a circle in which the width and height of an arc are given. The task is to find the radius of the circle with… Read More »

Given a circle which has a chord inside it. The length of the chord and the radius of the circle are given. The task is… Read More »

Given two circles, of given radii, that touch each other externally. The task is to find the length of the direct common tangent between the… Read More »

Given a circle with a given radius has its centre at a particular position in the coordinate plane. In the coordinate plane, another point is… Read More »

Given two circles, of given radii, have there centres a given distance apart, such that the circles don’t touch each other. The task is to… Read More »

Given a large number of N digits. We are also given with 10 numbers which represents the alternate number for all the one-digit numbers from… Read More »

Given a number N. Add one to the number in the first step and if the number has trailing zeros, remove all the trailing zeros… Read More »

Given an array arr[]. The task is to find an element from arr[] which has the maximum count of set bits. Examples: Input: arr[] =… Read More »