Tap here to switch tabs
Problem
Submissions

Problem: Factorial Trailing Zeroes

med
30 min
Try to solve the Factorial Trailing Zeroes problem.

Statement

Given an integer n, return the number of trailing zeroes in n!.

Note: n! denotes the factorial of n, defined as the product of all positive integers less than or equal to n (with 0!=10! = 1).

Constraints:

  • 0≤0 \leq n ≤104\leq 10^4

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Factorial Trailing Zeroes

med
30 min
Try to solve the Factorial Trailing Zeroes problem.

Statement

Given an integer n, return the number of trailing zeroes in n!.

Note: n! denotes the factorial of n, defined as the product of all positive integers less than or equal to n (with 0!=10! = 1).

Constraints:

  • 0≤0 \leq n ≤104\leq 10^4