## Find the ratio of number of elements in two Arrays from their individual and combined average

Given the average of elements in two arrays as ‘a’ and ‘b’ respectively, and their combined average as ‘c’, the task is to find the… Read More »

- Count of integers that divide all the elements of the given array
- Count common elements in two arrays containing multiples of N and M
- Subsequence X of length K such that gcd(X[0], X[1]) + (X[2], X[3]) + ... is maximized
- Minimum deletions required to make GCD of the array equal to 1
- Find permutation of first N natural numbers that satisfies the given condition
- Count of quadruplets from range [L, R] having GCD equal to K
- Remove an element to maximize the GCD of the given array
- Find two co-prime integers such that the first divides A and the second divides B
- Count the number of subsequences of length k having equal LCM and HCF
- Find the number of pairs such that their gcd is equals to 1
- GCD from root to leaf path in an N-ary tree
- Lexicographically largest permutation of the array such that a[i] = a[i-1] + gcd(a[i-1], a[i-2])
- Number of Quadruples with GCD equal to K
- Nth number in a set of multiples of A , B or C
- Sum of GCDs of each row of the given matrix
- Check if all the elements can be made equal on dividing with X and Y
- GCD of elements which occur prime number of times
- Find numbers which are multiples of first array and factors of second array
- Sand Timer Flip Counting Problem
- Maximum count of common divisors of A and B such that all are co-primes to one another
- Find the ratio of number of elements in two Arrays from their individual and combined average

Given the average of elements in two arrays as ‘a’ and ‘b’ respectively, and their combined average as ‘c’, the task is to find the… Read More »

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 »

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 »

Given an array arr[] of N elements, the task is to find the GCD of the elements which have prime frequencies in the array. Note… Read More »

Given four integers N, A, B and C. The task is to print the Nth number in the set containing the multiples of A, B… Read More »

Given an array Arr and an integer K. The task is to find the number of subsequences of size K such that the LCM and… Read More »

Given an array a of size N. The task is to find the number of pairs such that gcd(a[i], a[j]) where 1 ≤ i <… Read More »

Given two integers A and B, the task is to find two co-prime numbers C1 and C2 such that C1 divides A and C2 divides… Read More »

Given two integers A and B representing the time taken by two different Sand timers to get empty. The task is to find the count… Read More »

Given an array arr[] of N elements. The task is to find the count of positive integers that divide all the array elements. Examples: Input:… Read More »

Given an array a of size N. The task is to find a subsequence X of length K such that gcd(X[0], X[1]) + (X[2], X[3])… Read More »

Given an array arr[] of size N (N > 2). The task is to find lexicographically largest permutation of the array such that arr[i] =… Read More »

Given an array arr[] and two integers X and Y. The task is to check whether it is possible to make all the elements equal… Read More »

Given two integers N and K, the task is to find the count of quadruples of (i, j, k, l) such that 1 ≤ i… Read More »

Given an array arr[] of length N ≥ 2. The task is to remove an element from the given array such that the GCD of… Read More »