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

## Choose points from two ranges such that no point lies in both the ranges

Given two segments [L1, R1] and [L2, R2], the task is to choose two elements x and y from both the ranges (one from range… Read More »

## Minimum value to be added to X such that it is at least Y percent of N

Given three integers N, X and Y, the task is to find the minimum integer that should be added to X to make it at… Read More »

## Count triplet pairs (A, B, C) of points in 2-D space that satisfy the given condition

Given N points in 2 dimensional space. The task is to count the number of triplets pairs (A, B, C) such that point B is… Read More »

## Minimum number of operations to move all uppercase characters before all lower case characters

Given a string str, containing upper case and lower case characters. In a single operations, any lowercase character can be converted to an uppercase character… Read More »

## Sub-string that contains all lowercase alphabets after performing the given operation

Given a string str containing lower case alphabets and character ‘?’. The task is to check if it is possible to make str good or… Read More »

## Find the winner by adding Pairwise difference of elements in the array until Possible

Given an array arr[] of positive distinct integers, two players A and B are playing a game. At each move, a player selects two numbers… Read More »

## Find integers that divides maximum number of elements of the array

Given an array arr[] of integers, the task is to find the element (other than 1) which is the factor of maximum number of elements… Read More »

## Smallest integer with digit sum M and multiple of N

Given two positive integers N and M, the task is to find the smallest positive integer which is divisible by N and whose digit sum… Read More »

## Find the cordinates of the fourth vertex of a rectangle with given 3 vertices

Given an N * M grid. It contains exactly three ‘*’ and every other cell is a ‘.’ where ‘*’ denotes a vertex of a… Read More »

## Maximum sum after repeatedly dividing N by a divisor

Given an integer N. The task is to find the maximum possible sum of intermediate values (Including N and 1) attained after applying the beow… Read More »

## Numbers of Length N having digits A and B and whose sum of digits contain only digits A and B

Given three positive integers N, A and B. The task is to count the numbers of length N containing only digits A and B and… Read More »

## Make all elements of an array equal with the given operation

Given an array arr[] of n integers and an integer k. The task is to make all the elements of arr[] equal with the given… Read More »

## Maximum size of sub-array that satisfies the given condition

Given an array arr[] of integers. The task is to return the length of the maximum size sub-array such that either one of the condition… Read More »

## Number of elements with even factors in the given range

Given a range [n, m], the task is to find the number of elements that have even number of factors in the given range (n… Read More »

## Maximum number of teams that can be formed with given persons

Given two integers N and M which denote the number of persons of Type1 and Type2 respectively. The task is to find the maximum number… Read More »