Trailing zeroes in n!

Find and return number of trailing 0s in n factorial without calculating n factorial.

Sample Input
50
Sample Output
12
Input Size Limit
n < 10^11

Login to submit your solution

Fb dab53a1a64929320dc7425896aa73fd9e5512b6ab52e414ff5f3ebb5cecc73eb

Share Problem