Given an integer N, the task is to check if this number can be represented as the sum of two consecutive perfect cubes or not....
Given a number N, the task is to write C program to check if the given number is perfect cube or not....
Given two integers A and N, the task is to calculate A raised to power N (i.e. AN)....
Given an array arr[] of N positive integers. The task is to find the number of pairs whose Bitwise AND value is a power of 2.Examples:...
Given an integer N, the task is to count the number of binary strings of length N having only 0’s and 1’s. Note: Since the count can be very large, return the answer modulo 10^9+7....
Given an integer n, the task is to find the sum of the series 11 + 22 + 33 + ….. + nn using recursion....
Given two integers n and m, where n represent some paintings numbered from 1 to n and m represent some colours 1 to m with unlimited amount. The task is to find the number of ways to paint the paintings such that no two consecutive paintings have the same colors.Note: Answer must be calculated in modulo 10^9 +7 as answer can be very large. Examples:...
Given a positive integer n, find if it can be expressed as xy where y > 1 and x > 0. x and y both are integers....
Write a function that, for a given no n, finds a number p which is greater than or equal to n and is the smallest power of 2....
Given two integers x and n, write a function to compute xn. We may assume that x and n are small and overflow doesn’t happen....
Given an array arr[] of size N, the task is to print all the elements of the Array which can be expressed as power of a prime number....
Given an integer N, the task is to find the minimum number of steps required to change the number N to a perfect power of 2 using the following steps:...