Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 220 Bytes

File metadata and controls

10 lines (7 loc) · 220 Bytes

Factorial Trailing Zeroes

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

Note: Your solution should be in logarithmic time complexity.

Solution

5 occurs much more frequently than 2. Count 5s.