Jet Interview Question

How do you implement factorial function recursively?

Interview Answer

Anonymous

Mar 8, 2017

def factorial(n): if n <= 1: return 1 else: return n*factorial(n-1)