Skip to content

Add recursive factorial method with tests #12800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 19, 2025
commit 137dda1a8c507f5a5b5ea1c6530977a44ff58ec4
2 changes: 2 additions & 0 deletions recursion/factorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Fibonacci
https://en.wikipedia.org/wiki/Fibonacci_number
"""


def factorial(number: int) -> int:
"""
Compute the factorial of a non-negative integer using recursion.
Expand Down
Loading