Cody

Problem 44068. The number of trailing zero digit of a factorial

For given positive integer n, take factorial of that number. How many trailing zeros does it have?

Example: factorial(11) = 39916800

Its last zero-digit count is 2.

Optional: Can you make an efficient algorithm for a very large n?

Solution Stats

60.0% Correct | 40.0% Incorrect
Last Solution submitted on Jun 26, 2020

Problem Comments