Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
Bit Magic
1.2k+ articles
Modular Arithmetic
190+ articles
Bitwise-AND
130+ articles
factorial
130+ articles
cpp-data-types
57 articles
maths-log
27 articles
integer-overflow
6 posts
Popular Articles
Recent Articles
How Do I Detect Unsigned Integer Overflow in C++?
Last Updated: 16 April 2024
In C++, unsigned integer is a datatype that can store only zero and non-negative integer values. According to C++ standard, unsigned integer
...read more
cpp-data-types
C++
C++ Programs
integer-overflow
Picked
CPP Examples
Check whether product of 'n' numbers is even or odd
Last Updated: 19 September 2023
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
Bit Magic
Mathematical
integer-overflow
Bitwise-AND
DSA
Find larger of x^y and y^x
Last Updated: 19 December 2022
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 : 3^2We know 3^
...read more
Mathematical
maths-log
integer-overflow
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
C++
4k+ articles
C++ Programs
2.5k+ articles
Bit Magic
1.2k+ articles
Modular Arithmetic
190+ articles
Bitwise-AND
130+ articles
factorial
130+ articles
cpp-data-types
57+ articles
maths-log
27+ articles
Product of first N factorials
Last Updated: 01 March 2023
Given a number N. Find the product of first N factorials modulo 1000000007.Constraints: 1 ≤ N ≤ 1e6Examples:Input : 3Output : 12Explanat
...read more
Mathematical
factorial
Modular Arithmetic
integer-overflow
DSA
First digit in factorial of a number
Last Updated: 27 January 2023
Given a positive integer n, find the first digit in its factorial.Examples :Input : n = 5Output : 1Factorial of 5 is 120 and firstdigit is
...read more
Mathematical
Technical Scripter
factorial
integer-overflow
DSA
Check for Integer Overflow
Last Updated: 26 March 2025
Given two integers a and b. The task is to design a function that adds two integers and detects overflow during the addition. If the sum doe
...read more
Bit Magic
integer-overflow
DSA
1
1
1
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !