Given a sequence with some of its term, we need to calculate next K term of this sequence. It is given that sequence is generated… Read More

# Category Archives: Mathematical

You are given a number n ( 3 <= n < 10^6 ) and you have to find nearest prime less than n? Examples: Input… Read More

Given a number n find the smallest number evenly divisible by each number 1 to n. Examples: Input : n = 4 Output : 12… Read More

Given a limit, find the sum of all the even-valued terms in the Fibonacci sequence below given limit. The first few terms of Fibonacci Numbers… Read More

Given two numbers a and b, and a number k which is odd. The task is to find all the numbers between a and b… Read More

Given a value n, find the n’th even Fibonacci Number. Examples : Input : n = 3 Output : 34 Input : n = 4… Read More

Given a value n, find out the largest palindrome number which is product of two n digit numbers. Examples : Input : n = 2… Read More

Given Q queries, of type: L R, for each query you must print the maximum number of divisors that a number x (L <= x… Read More

You are given two numbers a and b (1 <= a,b <= 10^8 ) and n. The task is to find all numbers between a… Read More

Given a number n, find n’th smart number (1<=n<=1000). Smart number is a number which has at least three distinct prime factors. We are given… Read More

I recently got interviewed for MakeMyTrip for the Software Engineer full time position. There were in a total of 5 rounds. First Round (Online Coding… Read More

Given a pair of positive numbers x and y. We repeatedly subtract the smaller of the two integers from greater one until one of the… Read More

Given two integer numbers, the task is to find count of all common divisors of given numbers? Examples : Input : a = 12, b… Read More

Given two integer numbers, the task is to find the count of all common divisors of given numbers. Input : a = 12, b =… Read More

Given two integer numbers, the task is to find the count of all common divisors of given numbers? Input : a = 12, b =… Read More