# Tag Archives: factor

Given an Linked list containing N positive integer, the task is to find the sum of all the perfect numbers from the list.  A number… Read More
Given an array arr[] of N distinct integers and a positive integer M, the task is to find the product of all the elements at… Read More
Given a number N, the task is to find the factors of N. Examples:   Input: N = 1000009 Output: 293 3413 Explanation: 293 * 3413 = 1000009Input: N =… Read More
Given an array arr[] containing non-negative integers of length N, the task is to print the length of the longest subsequence of Powerful numbers in… Read More
Given an integer N, the task is to find all the divisors of numbers from 1 to N.Note: 1 ? N ? 100000  Examples: Input:… Read More
Given an array arr[] and an integer K, the task is to calculate the count the factors of K present in the array.Examples:   Input: arr[]… Read More
Given a tree, and the weights of all the nodes, the task is to count the number of nodes whose weight is a Powerful Number.… Read More
Given an array of positive integers arr[], the task is to count the minimum factor jumps required to reach the end of an array. From… Read More
Given two integers X and K, the task is to determine whether there exists a number that has exactly X factors out of which K… Read More
Given a large number N, the task is to divide this number into a product of two factors, using Fermat’s Factorisation method. Examples Input: N… Read More
Given a Binary Tree, the task is to print the count of nodes whose immediate children are its factors.  Examples:   Input: 1 / \ 15… Read More
Given a value N, find out the largest palindrome number which is the product of two N-digit numbers.Examples:  Input: N = 2 Output: 9009 Explanation: 9009 is the… Read More
Prerequisite: To Find Maximum and Minimum Prime NumberGiven four integers A, B, C and X, the task is to minimize the cost of selecting two… Read More
Given two integers X and Y, the task is to find and print the numbers that divide X and Y to produce the same remainder.Examples:  … Read More
Given an array arr of size N, the task is to count the number of indices j (j<i) such that a[i] divides a[j], for all… Read More