Skip to content

Commit 753b97c

Browse files
committed
Factorial Readme
1 parent ab00f7a commit 753b97c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

C++/Algorithms/Factorial/readme.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
### Factorial
22
- [FactRecursion](factRecursion.cpp)
3-
FactRecursion, which is a program for factorial of a number. Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example, we can think of factorial 5 is = 5x4x3x2x1 = 120
4-
Time complexity => O(n)
3+
4+
FactRecursion, which is a program for factorial of a number. Factorial of a non-negative integer, is multiplication of all integers smaller than or equal to n. For example, we can think of factorial 5 is = 5x4x3x2x1 = 120
5+
6+
Time complexity = O(n)
57

68
- [FactUsual](factUsual.cpp)
7-
FactUsual, which is a same problem above(which is factorial recursion), but calculating factorial of a number in an iterative way.
8-
Time complexity => O(n)
9+
10+
FactUsual, which is a same problem above(which is factorial recursion), but calculating factorial of a number in an iterative way.
11+
12+
Time complexity = O(n)

0 commit comments

Comments
 (0)