首页 > 代码库 > [LintCode] Trailing Zeroes 末尾零的个数

[LintCode] Trailing Zeroes 末尾零的个数

 

Write an algorithm which computes the number of trailing zeros in n factorial.

Have you met this question in a real interview? 
Yes
Example

11! = 39916800, so the out should be 2

Challenge 

O(log N) time

 

s

 

[LintCode] Trailing Zeroes 末尾零的个数