Skip to content

Commit b7ecbf6

Browse files
authored
Update dynamic_programming/factorial.py
1 parent e95fb72 commit b7ecbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: dynamic_programming/factorial.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Factorial of a number using memoization
22

33

4-
def factorial(num):
4+
def factorial(num: int) -> int:
55
"""
66
>>> factorial(7)
77
5040

0 commit comments

Comments
 (0)