Skip to content

Tag Archives: factor

Given an integer N, the task is to find the sum of all values of N after repeatedly dividing it with its smallest factor. Examples:… Read More
Given a number N, the task is to print the digits of N which divide N. Example: Input: N = 234Output: 2 3 Input: N… Read More
Given an array A[] of size N, the task is to find the elements in the array which are factors of the sum of the… Read More
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
Given a positive integer N, the task is to find the height of the Factor Tree of the given integer N. Examples: Input: N =… 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: Input:… 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: Input:… 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

Start Your Coding Journey Now!