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