# Tag Archives: maths-log

Given two numbers , find which is greater .If , print a^b is greater If , print b^a is greater If , print Both are equalExamples:  Input : 3 5 Output :… Read More
Given a positive integer N and K where    and    . The task is to check whether any permutation of digits of N equals… Read More
Given a number N. The task is to find the total number of Digits in . Examples:  Input: N = 3 Output: 3 If N=3, (3!)3=216,… 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 an integer N. The task is to find the minimum number of log values needed to calculate all the log values from 1 to… Read More
Given an integer N, the task is to print all the substring of N without doing any conversion i.e converting it into a string or… Read More
Given X and Y whose values are greater than 2, the task is to find out which is maximum among and Consider that either x… Read More
Given two integers say a and b. Find the quotient after dividing a by b without using multiplication, division and mod operator.Examples:  Input: a =… Read More
Given two positive integers m and n, the task is to write a program that checks whether m^n is greater than, less than, or equal… Read More
Given an integer n, find whether it is a power of d or not, where d is itself a power of 2.Examples:  Input : n… Read More
Given a positive integer N, we have to find the total number of digits in the factorial of N raised to the power N, i.e, Examples:  … Read More
Given two integer numbers, X and Y. find the larger of X^Y and Y^X or determine if they are equal.Examples:   Input : 2 3Output :… Read More
Check if a number can be expressed as x^y (x raised to power y) Given a positive integer n, find if it can be expressed as… Read More
Given A Number n in a base 10, find the number of digits in its base b representation. Constraints : Whole Examples :   Input : Number = 48… Read More
In mathematics, Rosser’s Theorem states that the nth prime number is greater than the product of n and natural logarithm of n for all n… Read More