## Number of positions such that adding K to the element is greater than sum of all other elements

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 »

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

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 »

Given an array arr[] of N integers where |arr[i] ≤ 1000| for all valid i. The task is to count the pairs of integers from… Read More »

Given a binary tree, print even positioned nodes of even level in level order traversal. The root is considered at level 0, and the left… Read More »

A pair of string s and r are called magical if for every index i the character of s is less than r i.e. s[i]… Read More »

Given an integer N ≥ 1, the task is to find the smallest and the largest sum of two N digit numbers. Examples: Input: N… Read More »

Given two arrays of N and M integers. The task is to find the number of unordered pairs formed of elements from both arrays in… Read More »