Skip to content

Latest commit

 

History

History
 
 

factorial_trailing_zeroes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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.