Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Number With Exclamation by catloverss
def factorial(n: int) -> int:
result = 1
for i in range(2, n + 1):
result *= i
return result
Dec. 4, 2025
Comments: