Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions maths/factorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
Factorial of a positive integer -- https://en.wikipedia.org/wiki/Factorial
"""

"""
Implementation of factorial algorithms (iterative and recursive).

Provides:
- Strict input validation
- Doctest examples
- Type hints
"""


def factorial(number: int) -> int:
"""
Expand Down
Loading