## Ways to write N as sum of two or more positive integers | Set-2

Given a number N, the task is to find the number of ways N can be partitioned, i.e. the number of ways that N can… Read More »

Given a number N, the task is to find the number of ways N can be partitioned, i.e. the number of ways that N can… Read More »

Given a integer N, with prime factorisation n1p1 * n2p2 …… The task is to check if the integer N is power-isolated or not. An… Read More »

Given two complex numbers of the form and , the task is to add these two Complex Numbers. Here the values of real and imaginary… Read More »

Given a number N. The task is to find the maximum possible value of SumOfDigits(A) + SumOfDigits(B) such that A + B = n (0<=A,… Read More »

Given two numbers a and n, the task is to find the single sum of digits of a^n (pow(a, n)). In single digit sum, we… Read More »

You have given a number n. Check if a number can be represented in the form of pow(a, b) (a^b). Examples: Input : 4 Output… Read More »

Given a very large Number N. The task is to check if the number can be divided into two or more segments of an equal… Read More »

Given an integer . The task is to find all factors of N and print the product of four factors of N such that: Sum… Read More »

Given a number where, . The task is to find the minimum number of elements to be deleted in between to such that the XOR… Read More »

Given an integer . The task is to find all factors of N print the product of four factors of N such that: Sum of… Read More »

Given a number N, the task is to print the maximum between the sum and multiplication of the digits of the given number until the… Read More »

Given a string str containing numbers separated with “, “. The task is to convert it into an integer array and find the sum of… Read More »

Given two numbers sa and sb represented as strings, find ab % MOD where MOD is 1e9 + 7. The numbers a and b can… Read More »

Given the first term (A) and common difference (D) of an Arithmetic Progression, and a prime number (P). The task is to find the position… Read More »

Given Q queries which consist of two integers, one is number(1 <= number <= 106) and the other is N., the task is to find… Read More »