## Program to evaluate the expression (√X+1)^6 + (√X-1)^6

Given a number . The task is to find the value of the below expression for the given value of . Examples: Input: X =… Read More »

## Product of every K’th prime number in an array

Given an integer ‘k’ and an array of integers ‘arr’ (less than 10^6), the task is to find the product of every K’th prime number… Read More »

## Find amount to be added to achieve target ratio in a given mixture

You are given a container of X liters containing a mixture of wine and water. The mixture contains W% of water in it. How much… Read More »

## Count Magic squares in a grid

Given an Grid of integers. The task is to find total numbers of 3 x 3 (contiguous) Magic Square subgrids in the given grid. A… Read More »

## Immediate smallest number after re-arranging the digits of a given number

Given a number print the immediate smallest number formed by re-arranging the digits of a given number. Print “Not Possible” if it is not possible… Read More »

## Check if a number is a Mystery Number

Given a number check whether it is a mystery number or not. A mystery number is that number which can be expressed as sum of… Read More »

## Find the Product of first N Prime Numbers

Given an positive integer N, calculate the product of the first N prime numbers. Examples: Input : N = 3 Output : 30 Explanation :… Read More »

## Replace every element of the array by product of all other elements

Given an array of integers. Replace every element by the product of all other elements of the array. Examples: Input : arr[] = { 2,… Read More »

## Sum of greatest odd divisor of numbers in given range

Given an interval of integers [A, B]. For each number in this interval compute its greatest odd divisor. Output the sum of these divisors. Examples:… Read More »

## Minimum numbers needed to express every integer below N as a sum

We have an integer N. We need to express N as a sum of K integers such that by adding some(or all) of these integers… Read More »

## Next smallest prime palindrome

Given a positive integer N where . The task is to find the smallest prime palindrome greater than or equal to N. Examples: Input: 8… Read More »

## Minimum squares to evenly cut a rectangle

Given a rectangular sheet of length l and width w. we need to divide this sheet in the square sheets such that the number of… Read More »

## Check if a number is an Achilles number or not

Given a positive integer N. The task is to check if N is an Achilles number or not. Print ‘YES’ if N is an Achilles… Read More »

## Program to find count of numbers having odd number of divisors in given range

Given two integers A and B. The task is to count how many numbers in the interval [ A, B ] have an odd number… Read More »

## Equation of circle from centre and radius

Given the centre of circle (x1, y1) and its radius r, find the equation of the circle having centre (x1, y1) and having radius r.… Read More »