# Tag Archives: factor

Given two positive integers A, B, and an array D[] consisting only of digits [0-9], the task is to check if it is possible to… Read More
Given three positive integers M, X, and Y, the task is to find the minimum number of operations required to make X and Y equal… Read More
Given two integers N and K, the task is to check if N can be represented as a sum of K positive integers, where at… Read More
Given integers N, M and P, the task is to check if is possible to find a rectangular area of P sq. units inside a… Read More
Given an array arr[] consisting of N positive integers and an integer K, the task is to find the maximum sum of array elements in… Read More
Given two integers L and R, the task is to calculate the count of numbers from the range [L, R] having exactly 5 distinct positive… Read More
Given an array arr[] consisting of N positive integers, the task is to find the sum of factors of product of all array elements. Since… Read More
Given a positive integer N, the task is to construct the longest sorted sequence of unique elements whose LCM of the is equal to N.… Read More
Given a positive integer N, the task is to generate two arrays of length N such that the same-indexed elements of both the arrays are… Read More
Given two positive integers N and K, the task is to find the value of N after incrementing the value of N in each operation… Read More
Given an array arr[], the task is to check if all the pairs of an array are coprime to each other. All pairs of an… Read More
Given an integer N, the task is to find the number of factors of N that are a perfect cube. Examples: Input: N = 27Output:… Read More
Given two integers N and K, the task is to find K pair of factors of the number N such that the GCD of each… Read More
Given an integer N, the task is to find the total number of multiplicative partitions for N. Multiplicative Partition: Number of ways of factoring of… Read More
Given an integer N, the task is to find the maximum possible GCD among all pair of integers with product N.Examples: Input: N=12 Output: 2 Explanation: All possible… Read More