Update appNew update is available. Click here to update.
sidenav-btnClose
Topic list
Factorial Of Large Number
MEDIUM
30 mins
45 upvotes
Strings
Topics (Covered in this problem)
Problem solved
Badge
Skill meter
Strings
-
-
Other topics
Problem solved
Badge
Skill meter
Matrices (2D Arrays)
-
-
Linked List
-
-
Sorting
-
-
Binary Search
-
-
Stacks & Queues
-
-
Trees
-
-
Graph
-
-
Dynamic Programming
-
-
Greedy
-
-
Tries
-
-
Arrays
-
-
SQL
-
-
Binary Search Trees
-
-
Heap
-
-
Bit Manipulation
-
-
Solve problems & track your progress
Checkout your overall progress in every topic here
Become
userLevel
Sensei
in DSA topics
Open the topic and solve more problems associated with it to improve your skills
Check out the skill meter for every topic
See how many problems you are left with to solve for cracking any stage. Score more than zero to get your progress counted.

Factorial Of Large Number

Contributed by
Vishal Modani
Medium
yellow-spark
0/80
Avg time to solve 30 mins
Success Rate 70 %
Share
45 upvotes

Problem Statement

Given an integer ‘N’, you are supposed to return the factorial of the given integer in the form of a string.

Detailed explanation ( Input/output format, Notes, Constraints, Images )
Sample Input 1:
2
3
4
Sample Output 1:
6
24
Explanation to Sample Input 1:
In the first test case, the factorial of 3 is 1x2x3 = 6.

In the second test case, the factorial of 4 is 1x2x3x4 = 24. 
Sample Input 2:
2
5
1
Sample Output 2:
120
1
Reset Code
Full screen
Auto
copy-code
Console