## Smallest multiple of 3 which consists of three given non-zero digits

Given three non-zero digits 0 < A, B, C < 9. The task is to find the smallest number divisible by 3 all of whose… Read More »

## Apothem of a n-sided regular polygon

Given here the side length a of a regular n-sided polygon, the task is to find the length of its Apothem. Apothem is the line… Read More »

## Greatest divisor which divides all natural number in range [L, R]

Given two integers L and R, the task is to find the greatest divisor that divides all the natural numbers in the range [L, R].… Read More »

## Find the repeating and the missing number using two equations

Given an array arr[] of size N, each integer from the range [1, N] appears exactly once except A which appears twice and B which… Read More »

## Print matrix after applying increment operations in M ranges

Given a 2-D matrix mat[][] of size N * N, initially all the elements of the matrix are 0. A number of queries(M ranges) need… Read More »

## Replace the maximum element in the array by coefficient of range

Given an array arr[] of integer elements, the task is to replace the maximum element in the array by the coefficient of range of the… Read More »

## Check whether a number is Non-hypotenuse number

Given a positive integer n, the task is to check if n is a Non-hypotenuse number or not. If n is a Non-hypotenuse number then… Read More »

## Product of N with its largest odd digit

Given an integer N, the task is to find the product of N with its largest odd digit. If there is no odd digit in… Read More »

## Divide the two given numbers by their common divisors

Given two numbers A and B, the task is to Divide the two numbers A and B by their common divisors. The numbers A and… Read More »

## Minimum prime number operations to convert A to B

Given two integers A and B, the task is to convert A to B with minimum number of following operations: Multiply A by any prime… Read More »

## Minimum absolute difference between N and a power of 2

Given an integer N, the task is to find the minimum absolute difference between N and a power of 2. Examples: Input: N = 4… Read More »

## Find the n-th binary string in sorted order

Given a positive integer n, the task is to find the nth string in the following infinite list of all possible strings over two symbols… Read More »

## Find probability that a player wins when probabilities of hitting the target are given

Given four integers p, q, r and s. Two players are playing a game where both the players are hitting a target and the first… Read More »

## Program to find the Nth term of the series 0, 3/1, 8/3, 15/5……..

Given a number N, the task is to find the Nth term of the the following series. 0, 3/1, 8/3, 15/5…… Examples: Input: n=4 Output:… Read More »

## Program to find the nth term of the series -2, 4, -6, 8….

Given a number N, the task is to find the Nth term of the the following series. -2, 4, -6, 8…… Examples: Input: n=4 Output:… Read More »