## Probability of getting a sum on throwing 2 Dices N times

Given the sum. The task is to find out the probability of occurring that sum on the thrown of the two dice N times. Probability… Read More »

## Minimum removals from array to make GCD greater

Given N numbers, the task is to find the minimum removal of numbers such that GCD of the remaining numbers is greater than initial GCD… Read More »

## Find any pair with given GCD and LCM

Given gcd G and lcm L. The task is to print any pair which has gcd G and lcm L. Examples: Input: G = 3,… Read More »

## Smallest square formed with given rectangles

Given a rectangle of length l and breadth b, we need to find the area of the smallest square which can be formed with the… Read More »

## Program to calculate the profit sharing ratio

Given an array of amounts and time_period that represents the amount of money N persons invest and the time period for which they had invested.… Read More »

## Pairs with GCD equal to one in the given range

Given a range i.e. L and R, the task is to find if we can form pairs such that GCD of every pair is 1.… Read More »

## Program to find GCD or HCF of two numbers using Middle School Procedure

Given two positive integers M and N, the task is to find the greatest common divisor (GCD) using Middle School Procedure. Note: GCD of two… Read More »

## Queries to count the number of unordered co-prime pairs from 1 to N

Given a number N. The task is to find the number of unordered coprime pairs of integers from 1 to N. There can be multiple… Read More »

## Minimum positive integer value possible of X for given A and B in X = P*A + Q*B

Given values of A and B, find the minimum positive integer value of X that can be achieved in the equation X = P*A +… Read More »

## Number of Co-prime pairs obtained from the sum of digits of elements in the given range

Given two numbers A and B where 1 <= A <= B. The task is to count the number of pairs whose elements are co-prime… Read More »

## 3DPLM Interview Experience for Software Developer

Round 1:Aptitude test Contains a list of 40 Math questions, 20 English question, 20 Logical Aptitude questions. Level of question was moderate. Round 2: Asked… Read More »

## Program to find HCF (Highest Common Factor) of 2 Numbers

HCF (Highest Common Factor) or GCD (Greatest Common Divisor) of two numbers is the largest number that divides both of them. For example GCD of… Read More »

## Find gcd(a^n, c) where a, n and c can vary from 1 to 10^9

Question problem states that find gcd() of two numbers out of which one number can be as big as (10^9)^(10^9) which cannot be stored in… Read More »

## Find unique pairs such that each element is less than or equal to N

Given an integer N, find and show the number of pairs which satisfies the following conditions: Square of distance between those two numbers is equal… Read More »

## Recursive program to print formula for GCD of n integers

Given a function gcd(a, b) to find GCD (Greatest Common Divisor) of two number. It is also known that GCD of three elements can be… Read More »