# Category Archives: Mathematical (adsbygoogle = window.adsbygoogle || []).push({});

## 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 »

## Length of direct common tangent between two intersecting Circles

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 »

## Radius of the circle when the width and height of an arc is given

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 »

## Shortest distance from the centre of a circle to a chord

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 »

## Length of the direct common tangent between two externally touching circles

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 »

## Shortest distance between a point and a circle

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 »

## Length of direct common tangent between the two non-intersecting Circles

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 »

## Maximize the given number by replacing a segment of digits with the alternate digits given

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 »

## Count unique numbers that can be generated from N by adding one and removing trailing zeros

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 »

## Find element with the maximum set bits in an array

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 »

## Count pairs with average present in the same array

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 »

## Print even positioned nodes of even levels in level order of the given binary tree

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 »

## Find number of magical pairs of string of length L

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 »

## Smallest and Largest sum of two n-digit numbers

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 count all pairs whose sum is an odd number

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 »