Skip to content

Tag Archives: integer-overflow

Given an array arr[] containing n numbers. The problem is to check whether the product of the given n numbers is even or odd.Examples:   Input… 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 3… Read More
Given a number N. Find the product of first N factorials modulo 1000000007. Constraints: 1 ≤ N ≤ 1e6 Examples: Input : 3 Output :… Read More
Given a positive integer n, find the first digit in its factorial. Examples :  Input : n = 5 Output : 1 Factorial of 5… Read More
Write a “C” function, int addOvf(int* result, int a, int b) If there is no overflow, the function places the resultant = sum a+b in… Read More