##
Count the numbers divisible by ‘M’ in a given range
July 1, 2017

A and B are two numbers which define a range, where A <= B. Find the total numbers in the given range [A … B]… Read More »

July 1, 2017

A and B are two numbers which define a range, where A <= B. Find the total numbers in the given range [A … B]… Read More »

June 30, 2017

A magic square of order n is an arrangement of n^2 numbers, usually distinct integers, in a square, such that the n numbers in all… Read More »

June 29, 2017

Given a number M which represents maximum number of characters (ignoring spaces) to be used to print first N natural numbers. Find the largest value… Read More »

You are given N distinct numbers. You are tasked with finding the number of groups of 2 or 3 that can be formed whose sum… Read More »

Given three integers a, b and m. Find an integer k such that where a and m are relatively prime. If it is not possible… Read More »

We have been given an array and our task is to check if the element of array is present in Fibonacci series or not. If… Read More »

June 27, 2017

Pseudo Random Number Generator(PRNG) refers to an algorithm that uses mathematical formulas to produce sequences of random numbers. PRNGs generate a sequence of numbers approximating… Read More »

June 26, 2017

The numbers that can be arranged to form a rectangle are called Rectangular Numbers ( also known as Pronic numbers). The first few rectangular numbers… Read More »

Given a function f(x) on floating number x and three initial distinct guesses for root of the function, find the root of function. Here, f(x)… Read More »

You are given an n-digit large number, you have to check whether it is divisible by 999 without dividing or finding modulo of number by… Read More »

A Krishnamurthy number is a number whose sum of the factorial of digits is equal to the number itself. For example 145, sum of factorial… Read More »

Euler Totient Function (ETF) Φ(n) for an input n is count of numbers in {1, 2, 3, …, n} that are relatively prime to n,… Read More »

June 24, 2017

Given a number ‘n’, we need to find the nth number whose each digit is a prime number i.e 2, 3, 5, 7….In other words… Read More »

Find the value of m and c such that a straight line y = mx + c, best represents the equation of a given set… Read More »

June 23, 2017

Given a number N, the task is to evaluate below expression. Expected time complexity is O(1). f(n-1)*f(n+1) – f(n)*f(n) Where f(n) is the n-th Fibonacci… Read More »