## Prime factors of LCM of array elements

Given an array arr[] such that 1 <= arr[i] <= 10^12, the task is to find prime factors of LCM of array elements. Examples: Input… Read More »

- Make all numbers of an array equal
- Reach the numbers by making jumps of two given lengths
- Largest palindromic number in an array
- Check if a number is perfect square without finding square root
- Sum of XOR of all subarrays
- Minimum operations required to make all the array elements equal
- Generate all rotations of a number
- A Sum Array Puzzle
- Puzzle | Neighbors in a round table
- Check if it is possible to reach a number by making jumps of two given length
- Find the number in a range having maximum product of the digits
- Find K Closest Points to the Origin
- Count of pairs (x, y) in an array such that x < y
- Count pairs in array whose sum is divisible by K
- Number of array elements derivable from D after performing certain operations
- Find the Nth term of the series 14, 28, 20, 40,.....
- Count rotations of N which are Odd and Even
- Color N boxes using M colors such that K boxes have different color from the box on its left
- Minimum number of sets with numbers less than Y
- Midpoint ellipse drawing algorithm
- New Algorithm to Generate Prime Numbers from 1 to Nth Number
- Distribute N candies among K people
- Given two arrays count all pairs whose sum is an odd number
- Sum of all Submatrices of a Given Matrix
- Find elements of array using XOR of consecutive elements
- Sum of the multiples of two numbers below N
- Sum of bitwise AND of all subarrays
- Remove characters from a numeric string such that string becomes divisible by 8
- Find the number of distinct pairs of vertices which have a distance of exactly k in a tree
- Represent n as the sum of exactly k powers of two | Set 2

Given an array arr[] such that 1 <= arr[i] <= 10^12, the task is to find prime factors of LCM of array elements. Examples: Input… Read More »

Given a large number as string, find remainder of number when divided by 7. Examples : Input : num = 1234 Output : 2 Input… Read More »

Given three integers x, y, z, the task is to compute the value of GCD(LCM(x,y), LCM(x,z)). Where, GCD = Greatest Common Divisor, LCM = Least… Read More »

Given a number “n”, find if it is Disarium or not. A number is called Disarium if sum of its digits powered with their respective… Read More »

Given a number n, the task is to check whether it can be expressed as a sum of two or more consecutive numbers or not.… Read More »

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 »

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 »