Given an array arr[] consisting of positive integers and an integer K, the task is to find the minimum number of operations required to make… Read More
Tag Archives: prime-factor
Given an array arr[] (where arr[i] lies in the range [2, 30] )of size N, the task is to find the number of subsets such… Read More
Find the sum of all the numbers between the range l and r. Here each number is represented by the sum of its distinct prime… Read More
Given two integers L and R, the task is to find the count of numbers in the range [L, R] which have only 2 or… Read More
Given integers N and K, the task is to find the number of factors of NCK. Since the answer can be very large return the… Read More
Given positive integers, X, Y, and N, the task is to check whether X can be made equal to Y in exactly N operations wherein… Read More
Given two integers D and K. The task is to find the smallest number N which has at least K prime divisors and the difference… Read More
Given a number N, the task is to find the distinct Prime Factors of N. Examples: Input: N = 12Output: 2 3Explanation: The factors of… Read More
Given an array arr[] of size N. The task is to sort the elements in arr[] based to their Highest Degree of Expression, in descending… Read More
Given a positive integer N, the task is to find the largest number in the range [1, N] such that the square root of the… Read More
Given a binary string S of size N and an array arr[] of M integers, the task is to find the final string after flipping… Read More
Given an integer N, you have to find two proper factors of N such that their sum is coprime with the given integer N. If… Read More
Given an positive integer N, the task is to find the number of triplets (X, Y, Z) such that the sum of product of any… Read More
Given a positive integer N, the task is to generate a sequence say arr[] of maximum length having all elements at least 2 such that… Read More
Given an array arr[] of size N, the task is to count the number of non-empty subsets whose product is equal to P1×P2×P3×……..×Pk where P1,… Read More