Tag Archives: maths-power

Given two integers N and K, the task is to find whether it is possible to represent N as the sum of exactly K powers… Read More
Given a positive integer N, the task is to find the permutation of first N natural numbers such that the product of Bitwise AND(&) of… Read More
Given an array, arr[] consisting of N positive integers, the task is to make all array elements equal to 1 by performing the following operations… Read More
Given an array arr[] of size N, the task is to print the nearest power of 2 for each array element. Note: If there happens… Read More
Given three integers N, A, and B, the task is to find a pair of positive integers (a, b) such that Aa + Bb =… Read More
Given a positive integer N, the task is to rearrange the digits of the given integer such that the integer becomes a power of 2.… Read More
Given an integer N, the task is to find the minimum number of coins of the form 2i required to make a change for N… Read More
Given an array A[] of size N, the task is to count the numbers of ways to construct an array B[] of size N, such… Read More
Given a positive integer N, the task is to find the value of (22 * X), where X is the binary representation of N. Since… Read More
Given two integers N and K, the task is to find the count of numbers up to N having K-th bit set. Examples: Input: N… Read More
Given an array arr[] consisting of N integers (All array elements are a perfect power of 2), the task is to calculate the sum of… Read More
Given two positive integers K and X, the task is to find the minimum possible sum of K positive integers ( repetitions allowed ) having… Read More
Given two integers L and R, the task is to count numbers from the range [L, R] having odd digits at odd positions and even… Read More
Given an integer N, the task is to reduce the value of N to 0 by performing the following operations minimum number of times: Flip… Read More