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

66.67% Correct | 33.33% Incorrect
Last Solution submitted on Nov 22, 2019