Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ 5 recusrion problems.py
File
5 recusrion problems.py
Python/5 recusrion problems.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# 1..TO FIND FACTORIAL OF A NUMBER USING RECURSION
2
3
def
factorial(n):
4
assert n>=0 and int(n)==n ,
"the number must be positive integer only"
Callers
nothing calls this directly
Calls
6
factorial
Function · 0.85
sum
Function · 0.85
fibonacci
Function · 0.70
isPalindrome
Function · 0.70
power
Function · 0.70
print
Function · 0.50
Tested by
no test coverage detected