Solución
solution.tsTypeScript
export function digitsInFactorial(n: number): number {
// Escribe tu solución aquí
let logSum: number = 0;
for(let i = n; i > 0; i--){
logSum += Math.log10(i);
}
return Math.floor(logSum) + 1;
}0respuestas