172. 阶乘后的零
function trailingZeroes(n: number): number {
let count = 0;
while (n > 0) {
n = Math.floor(n / 5);
count += n;
}
return count;
};
function trailingZeroes(n: number): number {
let count = 0;
while (n > 0) {
n = Math.floor(n / 5);
count += n;
}
return count;
};
让时间为你证明