标签:
public class Solution {
public int trailingZeroes(int n) {
int result = 0;
while(n > 0){
n = n/5;
result += n;
}
return result;
}
}
需要注意 个别数 5^n;
Jan 07 - Factorial trailing zeros; DAC; Number;
标签:
原文地址:http://www.cnblogs.com/5683yue/p/5112647.html