MCPcopy 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
3def factorial(n):
4 assert n>=0 and int(n)==n , "the number must be positive integer only"

Callers

nothing calls this directly

Calls 6

factorialFunction · 0.85
sumFunction · 0.85
fibonacciFunction · 0.70
isPalindromeFunction · 0.70
powerFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected