Given an integer N and an array arr[] having M integers, the task is to find the maximum size of the subset such that the… Read More

# Tag Archives: factor

Given a positive integer N, the task is to find the height of the Factor Tree of the given integer N. Examples:Attention reader! Don’t stop… Read More

Given two positive integers N and K, the task is to print the Kth largest factor of N. Input: N = 12, K =… Read More

Given an array arr[] consisting of N integers, the task is to find the number of pairs, where i ≤ j, such that the sum… Read More

Given a positive integer N, the task is to count the number of integers from the range [1, N] having exactly 5 divisors. Examples:Attention reader!… Read More

Given a positive integer N, the task is to find the number of positive integers whose GCD with the given integer N is the number… Read More

Given a positive integer N, the task is to find the absolute difference of the count of odd and even factors of N. Examples:Attention reader!… Read More

Given an array arr[] consisting of N positive integers, the task is to find the number of array elements whose count of divisors is a… Read More

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 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