## Count of pairs in an array such that the highest power of 2 that divides their product is 1

Given an array arr[] of N positive integers. The task is to find the count of pairs (arr[i], arr[j]) such that the maximum power of… Read More »

## Find numbers which are multiples of first array and factors of second array

Given two arrays A[] and B[], the task is to find the integers which are divisible by all the elements of array A[] and divide… Read More »

## Maximum count of common divisors of A and B such that all are co-primes to one another

Given two integers A and B. The task is to find the count of maximum elements from the common divisors of A and B such… Read More »

## Find number of factors of N when location of its two factors whose product is N is given

Given a and b which represents the location of two factors of N whose product is equal to the number N when the factors are… Read More »

## Find the total number of composite factor for a given number

Given an integer N, the task is to find the total number of composite factors of N. Composite factors of a number are the factors… Read More »

## Sort elements of the array that occurs in between multiples of K

Given an array arr[] and an integer K. The task is to sort the elements that are in between any two multiples of K. Examples:… Read More »

## Find integers that divides maximum number of elements of the array

Given an array arr[] of integers, the task is to find the element (other than 1) which is the factor of maximum number of elements… Read More »

## Number of elements with even factors in the given range

Given a range [n, m], the task is to find the number of elements that have even number of factors in the given range (n… Read More »

## Print multiples of Unit Digit of Given Number

Given a number . The task is to print the multiples of the unit digit of N from the unit digit of N to N.… Read More »

## Find sum of a number and its maximum prime factor

Given an integer N, the task is to find the sum of N and it’s maximum prime factor. Examples: Input: 19 Output: 38 Maximum prime… Read More »

## Minimize the value of N by applying the given operations

Given an integer N, below operations can be performed any number of times on N: Multiply N by any positive integer X i.e. N =… Read More »

## Check if frequency of character in one string is a factor or multiple of frequency of same character in other string

Given two strings, the task is to check whether the frequencies of a character(for each character) in one string is a multiple or a factor… Read More »

## Find the sum of all multiples of 2 and 5 below N

Given a number N. The task is to find the sum of all multiples of 2 and 5 below N ( N may be up… Read More »

## Count pairs (i,j) such that (i+j) is divisible by A and B both

Given n, m, A and B. The task is to count the number of pairs of integers (x, y) such that 1 x n and… Read More »

## Count all the numbers in a range with smallest factor as K

Given a range of integer from ‘a’ to ‘b’ . Our task is to calculate the amount of numbers from the interval [ a, b… Read More »