Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Use reduce solution in Creative category for Number With Exclamation by U.V
def factorial(n: int) -> int:
return __import__('functools').reduce(lambda a,b:a*b,range(1,n+1),1)
Nov. 16, 2023